aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Split.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:38:11 +0100
commitf6b386e652ad70ad29b6413d7050234b1d42829f (patch)
tree90fcef237898a915577cc84e0c53b78aed25105e /nx-X11/programs/Xserver/hw/nxagent/Split.c
parent059a3720514d27f9243b4b0521ef710ded2907e2 (diff)
downloadnx-libs-f6b386e652ad70ad29b6413d7050234b1d42829f.tar.gz
nx-libs-f6b386e652ad70ad29b6413d7050234b1d42829f.tar.bz2
nx-libs-f6b386e652ad70ad29b6413d7050234b1d42829f.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/Split.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Split.c b/nx-X11/programs/Xserver/hw/nxagent/Split.c
index 60af4a0d6..2e2b130fe 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Split.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Split.c
@@ -612,7 +612,7 @@ void nxagentValidateSplit(DrawablePtr pDrawable, RegionPtr pRegion)
RegionIntersect(&tmpRegion, pResource -> region, pRegion);
- if (RegionNil(&tmpRegion) == 0)
+ if (!RegionNil(&tmpRegion))
{
#ifdef TEST
fprintf(stderr, "nxagentValidateSplit: Marking the overlapping commits as invalid "
@@ -1074,7 +1074,7 @@ void nxagentHandleEndSplitEvent(int resource)
if (pResource -> drawable != NULL &&
pResource -> region != NullRegion)
{
- if (RegionNil(pResource -> region) == 0)
+ if (!RegionNil(pResource -> region))
{
RegionSubtract(
nxagentCorruptedRegion(pResource -> drawable),