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
4fb49543
Commit
4fb49543
authored
Dec 15, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xserver/hw/nxagent/Image.c: Fix regression FTBFS after
d4465b71
got merged in.
parent
cfbb0382
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+4
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
4fb49543
...
...
@@ -311,7 +311,7 @@ char *nxagentImageCopy(XImage *source, XImage *destination)
source
->
bytes_per_line
*
source
->
height
);
#endif
destination
->
data
=
X
malloc
(
source
->
bytes_per_line
*
source
->
height
);
destination
->
data
=
malloc
(
source
->
bytes_per_line
*
source
->
height
);
if
(
destination
->
data
==
NULL
)
{
...
...
@@ -344,7 +344,7 @@ char *nxagentImageAlpha(XImage *image)
size
=
(
image
->
bytes_per_line
*
image
->
height
)
>>
2
;
pData
=
X
malloc
(
size
);
pData
=
malloc
(
size
);
if
(
pData
==
NULL
)
{
...
...
@@ -457,7 +457,7 @@ FIXME: Here the split trap is always set and so the caching of
{
free
(
nxagentUnpackAlpha
[
resource
]
->
data
);
}
else
if
((
nxagentUnpackAlpha
[
resource
]
=
X
malloc
(
sizeof
(
UnpackAlphaRec
)))
==
NULL
)
else
if
((
nxagentUnpackAlpha
[
resource
]
=
malloc
(
sizeof
(
UnpackAlphaRec
)))
==
NULL
)
{
#ifdef PANIC
fprintf
(
stderr
,
"nxagentSetUnpackAlpha: PANIC! Can't allocate data for the alpha structure.
\n
"
);
...
...
@@ -1712,7 +1712,7 @@ int nxagentScaleImage(int x, int y, unsigned xRatio, unsigned yRatio,
newImage
->
byte_order
=
IMAGE_BYTE_ORDER
;
newImage
->
bitmap_bit_order
=
BITMAP_BIT_ORDER
;
newImage
->
data
=
X
malloc
(
newImage
->
bytes_per_line
*
newHeight
);
newImage
->
data
=
malloc
(
newImage
->
bytes_per_line
*
newHeight
);
if
(
newImage
->
data
==
NULL
)
{
...
...
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