aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-22 14:35:08 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-22 14:35:08 +0200
commit7392dd6a9b550538a5b7f2aa5204c805c15a9d6a (patch)
treee2f5a8fc5b50ed8eeeb018ffb7051f888b7dd5f1 /nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
parentc478ba2937b6a7e6c55b615ddeac3ca525f6a743 (diff)
parent450760bcafc8d2a708b9f6087f3c0c2cdab046a8 (diff)
downloadnx-libs-7392dd6a9b550538a5b7f2aa5204c805c15a9d6a.tar.gz
nx-libs-7392dd6a9b550538a5b7f2aa5204c805c15a9d6a.tar.bz2
nx-libs-7392dd6a9b550538a5b7f2aa5204c805c15a9d6a.zip
Merge branch 'uli42-pr/cleanup_wmisrunning' into 3.6.x
Attributes GH PR #728: https://github.com/ArcticaProject/nx-libs/pull/728
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Pixmap.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Pixmap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
index 421e023c1..be154f9c2 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
@@ -860,10 +860,10 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
Bool *pBool = (Bool*) p2;
nxagentPrivPixmapPtr pPixmapPriv;
- if (*pBool == 0 || pPixmap == NULL ||
+ if (!*pBool || pPixmap == NULL ||
NXDisplayError(nxagentDisplay) == 1)
{
- *pBool = 0;
+ *pBool = False;
#ifdef TEST
fprintf(stderr, "nxagentReconnectPixmap: Ignoring pixmap at [%p] while "
@@ -929,7 +929,7 @@ void nxagentReconnectPixmap(void *p0, XID x1, void *p2)
nxagentSplitTrap = 0;
- if (*pBool == 0)
+ if (!*pBool)
{
#ifdef PANIC
fprintf(stderr, "nxagentReconnectPixmap: PANIC! Failed to synchronize the pixmap.\n");
@@ -1035,7 +1035,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
PixmapPtr pPixmap = (PixmapPtr) p0;
Bool *pBool = (Bool*) p2;
- if (*pBool == False)
+ if (!*pBool)
{
return;
}
@@ -1065,7 +1065,7 @@ static void nxagentCheckOnePixmapIntegrity(void *p0, XID x1, void *p2)
Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
{
- Bool integrity = 1;
+ Bool integrity = True;
XImage *image;
char *data;
int format;
@@ -1121,11 +1121,11 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
if (image != NULL && memcmp(image -> data, data, length) != 0)
{
- integrity = 0;
+ integrity = False;
}
else
{
- integrity = 1;
+ integrity = True;
#ifdef TEST
fprintf(stderr, "nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. "
@@ -1135,7 +1135,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
#ifdef WARNING
- if (integrity == 0)
+ if (!integrity)
{
int i;