aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 23:54:50 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commitf98114c95b1486af4bf113051cdc9d938e81c22a (patch)
treec99da97f5bc1287d7b3f704517bc75ef8c5fb33f /nx-X11
parentb8017065de448d461d75f6c2891a961f4bb85b7a (diff)
downloadnx-libs-f98114c95b1486af4bf113051cdc9d938e81c22a.tar.gz
nx-libs-f98114c95b1486af4bf113051cdc9d938e81c22a.tar.bz2
nx-libs-f98114c95b1486af4bf113051cdc9d938e81c22a.zip
Drawable.c: make some variables Booleans
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Drawable.c10
1 files 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 "