[X2Go-Commits] [nx-libs] 99/429: GCOps.c: handle some internal variables as Booleans

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:12 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 1239dffeccc4f4c1fccfee8802562837c50bd193
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Wed Dec 30 23:57:00 2020 +0100

    GCOps.c: handle some internal variables as Booleans
---
 nx-X11/programs/Xserver/hw/nxagent/GCOps.c | 10 +++++-----
 1 file 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

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list