[X2Go-Commits] [nx-libs] 138/429: Drawable.c: make some variables Booleans
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:18 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 acf3e21f1898883d0692c6ad147c8c1b4e309af0
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed Dec 30 23:54:50 2020 +0100
Drawable.c: make some variables Booleans
---
nx-X11/programs/Xserver/hw/nxagent/Drawable.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
index c335e7ed9..8b657beb7 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
@@ -357,9 +357,9 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
* full drawable.
*/
- int useStoredBitmap = (nxagentDrawableBitmap(pDrawable) != NullPixmap && pRegion == NullRegion);
+ Bool useStoredBitmap = (nxagentDrawableBitmap(pDrawable) != NullPixmap && pRegion == NullRegion);
- if (useStoredBitmap != 0)
+ if (useStoredBitmap)
{
#ifdef TEST
fprintf(stderr, "nxagentSynchronizeRegion: Drawable [%s] at [%p] has a synchronization bitmap at [%p] "
@@ -1023,7 +1023,7 @@ void nxagentSynchronizeDrawablePredicate(void *p0, XID x1, void *p2)
DrawablePtr pDrawable = (DrawablePtr) p0;
unsigned int *breakMask = (unsigned int *) p2;
- int shouldClearHiddenRegion = 1;
+ Bool shouldClearHiddenRegion = True;
/*
* The nxagentSynchronization.abort propagates a break condition
@@ -1104,7 +1104,7 @@ void nxagentSynchronizeDrawablePredicate(void *p0, XID x1, void *p2)
(void *) pDrawable);
#endif
- if (shouldClearHiddenRegion == 1)
+ if (shouldClearHiddenRegion)
{
#ifdef TEST
fprintf(stderr, "nxagentSynchronizeDrawablePredicate: Clearing out the not visible window "
@@ -1180,7 +1180,7 @@ FIXME: This condition sounds only as a complication, as the break
*/
if (nxagentSynchronization.abort == 0 &&
- shouldClearHiddenRegion == 1)
+ shouldClearHiddenRegion)
{
#ifdef TEST
fprintf(stderr, "nxagentSynchronizeDrawablePredicate: Clearing out the remaining corrupted "
--
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