diff options
author | dscho <dscho> | 2002-10-22 08:46:27 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-10-22 08:46:27 +0000 |
commit | af85e5fee34f7998fe3f06c799b8364a9ddbebce (patch) | |
tree | 48cabfc42fb150d2a001042f8974b28b4287f436 /corre.c | |
parent | 5a5c22ffc98e4e44f7763256e3683cc390cd260b (diff) | |
download | libtdevnc-af85e5fee34f7998fe3f06c799b8364a9ddbebce.tar.gz libtdevnc-af85e5fee34f7998fe3f06c799b8364a9ddbebce.zip |
updated to vnc-3.3.4 (ZRLE encoding)
Diffstat (limited to 'corre.c')
-rw-r--r-- | corre.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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); |