From 4303b1131ba2aa1931e1aade36dce8a69c492d4a Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Wed, 30 Dec 2020 23:57:00 +0100 Subject: GCOps.c: handle some internal variables as Booleans --- nx-X11/programs/Xserver/hw/nxagent/GCOps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nx-X11') diff --git a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c index d29558cb2..277daa699 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c +++ b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c @@ -509,7 +509,7 @@ FIXME: The popup could be synchronized with one single put image, nxagentChangeClip(targetGC, CT_NONE, NullRegion, 0); - if (pClipRegionFree == True) + if (pClipRegionFree) { nxagentFreeRegion(pClipRegion); } @@ -1540,7 +1540,7 @@ void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, * will be cleared. */ - int inheritCorruptedRegion = 0; + Bool inheritCorruptedRegion = False; if (pGC -> fillStyle == FillTiled && pGC -> tileIsPixel == 0 && pGC -> tile.pixmap != NULL) @@ -1556,11 +1556,11 @@ void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, #endif - inheritCorruptedRegion = 1; + inheritCorruptedRegion = True; } } - if (inheritCorruptedRegion == 1 || nxagentDrawableStatus(pDrawable) == NotSynchronized) + if (inheritCorruptedRegion || nxagentDrawableStatus(pDrawable) == NotSynchronized) { RegionPtr rectRegion = RegionFromRects(nRectangles, pRectangles, CT_REGION); @@ -1582,7 +1582,7 @@ void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, RegionUninit(&tmpRegion); } - if (inheritCorruptedRegion == 1) + if (inheritCorruptedRegion) { /* * The fill style should affect the corrupted region -- cgit v1.2.3