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
f3aca240
You need to sign in or sign up before continuing.
Commit
f3aca240
authored
Dec 28, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image.c: code simplification/scope
parent
203891d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+2
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
f3aca240
...
...
@@ -140,9 +140,7 @@ static char *nxagentImageCopy(XImage *source, XImage *destination);
* expensive than a copy.
*/
#define nxagentNeedCache(image, method) \
\
((method) != PACK_BITMAP_16M_COLORS)
#define nxagentNeedCache(image, method) ((method) != PACK_BITMAP_16M_COLORS)
/*
* With the bitmap encoding, if the image is 32 bits-per-pixel the 4th
...
...
@@ -276,6 +274,7 @@ int nxagentImagePad(int width, int format, int leftPad, int depth)
else
if
(
format
==
XYPixmap
)
{
line
=
BitmapBytePad
(
width
+
leftPad
);
/* FIXME: shouldn't we multiply by depth here like in nxagentImageLength? */
}
else
if
(
format
==
ZPixmap
)
{
...
...
@@ -1559,7 +1558,6 @@ int nxagentScaleImage(int x, int y, unsigned xRatio, unsigned yRatio,
XImage
**
pImage
,
int
*
scaledx
,
int
*
scaledy
)
{
XImage
*
image
=
*
pImage
;
if
(
image
==
NULL
)
{
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