aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Image.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 23:52:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commitb8017065de448d461d75f6c2891a961f4bb85b7a (patch)
treef5abb6a78245d146c6553b6fe0b00d357879829a /nx-X11/programs/Xserver/hw/nxagent/Image.c
parent06833b9646f6286effac00a058b231f7ddbb960f (diff)
downloadnx-libs-b8017065de448d461d75f6c2891a961f4bb85b7a.tar.gz
nx-libs-b8017065de448d461d75f6c2891a961f4bb85b7a.tar.bz2
nx-libs-b8017065de448d461d75f6c2891a961f4bb85b7a.zip
nxagent: handle RegionNil macro as Boolean
just as the rest of the Xserver is alsow doing
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Image.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Image.c b/nx-X11/programs/Xserver/hw/nxagent/Image.c
index 2e0c901ef..eb4085ef3 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Image.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Image.c
@@ -544,7 +544,7 @@ void nxagentPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
pRegion = nxagentCreateRegion(pDrawable, pGC, dstX, dstY, dstWidth, dstHeight);
- if (RegionNil(pRegion) == 1)
+ if (RegionNil(pRegion))
{
#ifdef TEST
fprintf(stderr, "nxagentPutImage: WARNING! Prevented operation on fully clipped "
@@ -987,7 +987,7 @@ void nxagentRealizeImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
clipRegion = nxagentCreateRegion(pDrawable, pGC, x, y, w, h);
}
- if (clipRegion == NullRegion || RegionNil(clipRegion) == 0)
+ if (clipRegion == NullRegion || !RegionNil(clipRegion))
{
nxagentPutSubImage(pDrawable, pGC, depth, x, y, w, h,
leftPad, format, data, pVisual);