aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 23:57:00 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commit1239dffeccc4f4c1fccfee8802562837c50bd193 (patch)
tree5dccead5db7cb9dc5e10a28ea299f1f97ec580db /nx-X11/programs/Xserver/hw
parentf98114c95b1486af4bf113051cdc9d938e81c22a (diff)
downloadnx-libs-1239dffeccc4f4c1fccfee8802562837c50bd193.tar.gz
nx-libs-1239dffeccc4f4c1fccfee8802562837c50bd193.tar.bz2
nx-libs-1239dffeccc4f4c1fccfee8802562837c50bd193.zip
GCOps.c: handle some internal variables as Booleans
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/GCOps.c10
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