Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
528e1e4e
Commit
528e1e4e
authored
Jun 20, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXpicture.c: code simplification
parent
bb08043a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
NXpicture.c
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c
+2
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c
View file @
528e1e4e
...
@@ -303,21 +303,17 @@ CreateSolidPicture (Picture pid, xRenderColor *color, int *error)
...
@@ -303,21 +303,17 @@ CreateSolidPicture (Picture pid, xRenderColor *color, int *error)
static
PicturePtr
createSourcePicture
(
void
)
static
PicturePtr
createSourcePicture
(
void
)
{
{
PicturePtr
pPicture
;
extern
int
nxagentPicturePrivateIndex
;
extern
int
nxagentPicturePrivateIndex
;
unsigned
int
totalPictureSize
;
/*
/*
* Compute size of entire PictureRect, plus privates.
* Compute size of entire PictureRect, plus privates.
*/
*/
totalPictureSize
=
sizeof
(
PictureRec
)
+
unsigned
int
totalPictureSize
=
sizeof
(
PictureRec
)
+
picturePrivateCount
*
sizeof
(
DevUnion
)
+
picturePrivateCount
*
sizeof
(
DevUnion
)
+
sizeof
(
nxagentPrivPictureRec
);
sizeof
(
nxagentPrivPictureRec
);
pPicture
=
(
PicturePtr
)
calloc
(
1
,
totalPictureSize
);
PicturePtr
pPicture
=
(
PicturePtr
)
calloc
(
1
,
totalPictureSize
);
if
(
!
pPicture
)
if
(
!
pPicture
)
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment