summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rwxr-xr-xlibvncserver/rfbregion.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b9b17f..43637e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-02-18 Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
+ * libvncserver/rfbregion.c: please MS Visual C++
+
2008-02-04 Noriaki Yamazaki <micro-vnc@ias.hitachi-system.co.jp>
* libvncclient/rfbproto.c, libvncclient/zrle.c: Add ZYWRLE
support to LibVNCClient
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) {