diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-12-30 23:57:00 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-01-15 16:38:11 +0100 |
commit | 4303b1131ba2aa1931e1aade36dce8a69c492d4a (patch) | |
tree | 5c5c0d7a350c0b507fc982ce31814ec2d14422a2 /nx-X11/programs/Xserver | |
parent | acf3e21f1898883d0692c6ad147c8c1b4e309af0 (diff) | |
download | nx-libs-4303b1131ba2aa1931e1aade36dce8a69c492d4a.tar.gz nx-libs-4303b1131ba2aa1931e1aade36dce8a69c492d4a.tar.bz2 nx-libs-4303b1131ba2aa1931e1aade36dce8a69c492d4a.zip |
GCOps.c: handle some internal variables as Booleans
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/GCOps.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |