summaryrefslogtreecommitdiffstats
path: root/corre.c
diff options
context:
space:
mode:
authordscho <dscho>2002-10-22 08:46:27 +0000
committerdscho <dscho>2002-10-22 08:46:27 +0000
commitaf85e5fee34f7998fe3f06c799b8364a9ddbebce (patch)
tree48cabfc42fb150d2a001042f8974b28b4287f436 /corre.c
parent5a5c22ffc98e4e44f7763256e3683cc390cd260b (diff)
downloadlibtdevnc-af85e5fee34f7998fe3f06c799b8364a9ddbebce.tar.gz
libtdevnc-af85e5fee34f7998fe3f06c799b8364a9ddbebce.zip
updated to vnc-3.3.4 (ZRLE encoding)
Diffstat (limited to 'corre.c')
-rw-r--r--corre.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/corre.c b/corre.c
index d6329a1..d866712 100644
--- a/corre.c
+++ b/corre.c
@@ -6,6 +6,7 @@
*/
/*
+ * Copyright (C) 2002 RealVNC Ltd.
* OSXvnc Copyright (C) 2001 Dan McGuirk <mcguirk@incompleteness.net>.
* Original Xvnc code Copyright (C) 1999 AT&T Laboratories Cambridge.
* All Rights Reserved.
@@ -63,17 +64,15 @@ rfbSendRectEncodingCoRRE(cl, x, y, w, h)
int x, y, w, h;
{
if (h > cl->correMaxHeight) {
- rfbSendRectEncodingCoRRE(cl, x, y, w, cl->correMaxHeight );
- rfbSendRectEncodingCoRRE(cl, x, y + cl->correMaxHeight, w,
- h - cl->correMaxHeight);
- return FALSE;
+ return (rfbSendRectEncodingCoRRE(cl, x, y, w, cl->correMaxHeight) &&
+ rfbSendRectEncodingCoRRE(cl, x, y + cl->correMaxHeight, w,
+ h - cl->correMaxHeight));
}
if (w > cl->correMaxWidth) {
- rfbSendRectEncodingCoRRE(cl, x, y, cl->correMaxWidth, h);
- rfbSendRectEncodingCoRRE(cl, x + cl->correMaxWidth, y,
- w - cl->correMaxWidth, h);
- return FALSE;
+ return (rfbSendRectEncodingCoRRE(cl, x, y, cl->correMaxWidth, h) &&
+ rfbSendRectEncodingCoRRE(cl, x + cl->correMaxWidth, y,
+ w - cl->correMaxWidth, h));
}
rfbSendSmallRectEncodingCoRRE(cl, x, y, w, h);