summaryrefslogtreecommitdiffstats
path: root/libvncserver/rfbregion.c
diff options
context:
space:
mode:
authordscho <dscho>2008-02-18 20:05:14 +0000
committerdscho <dscho>2008-02-18 20:05:14 +0000
commitc04a28f306e7178dc8af5054f5c41db218a41be1 (patch)
tree73dc573065120d3a59456ba57b3f938b17160eaf /libvncserver/rfbregion.c
parent51575e4ed490f6675a4e713fe79555fc338f4116 (diff)
downloadlibtdevnc-c04a28f306e7178dc8af5054f5c41db218a41be1.tar.gz
libtdevnc-c04a28f306e7178dc8af5054f5c41db218a41be1.zip
Please MS Visual C++ a bit (Christian Ehrlicher)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncserver/rfbregion.c')
-rwxr-xr-xlibvncserver/rfbregion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/rfbregion.c b/libvncserver/rfbregion.c
index 9da6b1a..0ab8a12 100755
--- a/libvncserver/rfbregion.c
+++ b/libvncserver/rfbregion.c
@@ -620,8 +620,8 @@ rfbBool
sraRgnPopRect(sraRegion *rgn, sraRect *rect, unsigned long flags) {
sraSpan *vcurr, *hcurr;
sraSpan *vend, *hend;
- rfbBool right2left = flags & 2;
- rfbBool bottom2top = flags & 1;
+ rfbBool right2left = (flags & 2) == 2;
+ rfbBool bottom2top = (flags & 1) == 1;
/* - Pick correct order */
if (bottom2top) {