aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Pixels.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:27:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:27:32 +0100
commitfaae65fb3693fd1020e740e00f9038607bc4a430 (patch)
tree8ee59a2342f6320f9e8dc3e714b118e106f8d64d /nx-X11/programs/Xserver/hw/nxagent/Pixels.h
parentd545afdf3967b0305c1215bb9f8a545b81fc24e8 (diff)
parentb44ecc0f897a5d03445aafc120e54b6475699254 (diff)
downloadnx-libs-faae65fb3693fd1020e740e00f9038607bc4a430.tar.gz
nx-libs-faae65fb3693fd1020e740e00f9038607bc4a430.tar.bz2
nx-libs-faae65fb3693fd1020e740e00f9038607bc4a430.zip
Merge branch 'uli42-pr/rework_booleans_v2' into 3.6.x
Attributes GH PR #980: https://github.com/ArcticaProject/nx-libs/pull/980
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Pixels.h')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Pixels.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pixels.h b/nx-X11/programs/Xserver/hw/nxagent/Pixels.h
index 316d147ac..cf5e50c04 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Pixels.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Pixels.h
@@ -77,7 +77,7 @@ while (0)
#define breakOnBlocking(mask) \
(((mask) != NEVER_BREAK) && ((mask) & BLOCKING_BREAK) && \
- nxagentBlocking == 1)
+ nxagentBlocking)
#define breakOnCongestion(mask) \
(((mask) != NEVER_BREAK) && ((mask) & CONGESTION_BREAK) && \
@@ -97,7 +97,7 @@ while (0)
nxagentUserInput(NULL) == 1)
#define canBreakOnTimeout(mask) \
- (((mask) != NEVER_BREAK) && nxagentOption(Shadow) == 0)
+ (((mask) != NEVER_BREAK) && !nxagentOption(Shadow))
/*
* Macros defining the conditions to
@@ -145,7 +145,7 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
#define NXAGENT_SHOULD_DEFER_PUTIMAGE(pDrawable) \
- (nxagentSplitTrap == 0 && \
+ (!nxagentSplitTrap && \
nxagentOption(DeferLevel) > 0)
/*
@@ -164,7 +164,7 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
#define NXAGENT_SHOULD_SYNCHRONIZE_CORRUPTED_PIXMAPS(mask) \
((nxagentCorruptedWindows == 0 && nxagentCorruptedPixmaps > 0 && \
- nxagentCongestion == 0 && nxagentBlocking == 0) || \
+ nxagentCongestion == 0 && !nxagentBlocking) || \
mask == NEVER_BREAK)
/*
@@ -173,8 +173,8 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
*/
#define NXAGENT_SHOULD_SYNCHRONIZE_WINDOW(pDrawable) \
- (nxagentWindowIsVisible((WindowPtr) pDrawable) == 1 && \
- (nxagentDefaultWindowIsVisible() == 1 || nxagentCompositeEnable == 1))
+ (nxagentWindowIsVisible((WindowPtr) pDrawable) && \
+ (nxagentDefaultWindowIsVisible() || nxagentCompositeEnable == 1))
#define MINIMUM_PIXMAP_USAGE_COUNTER 2