diff options
author | dscho <dscho> | 2005-06-28 14:30:08 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-06-28 14:30:08 +0000 |
commit | 462ffd3f3eddd9b428e76b0fd32d3f988660bac0 (patch) | |
tree | 7526ccd15bedba6732fc5a5c6c10080ebba3d347 | |
parent | 9d43e8af78ae6668a505f66379f80524c0047322 (diff) | |
download | libtdevnc-462ffd3f3eddd9b428e76b0fd32d3f988660bac0.tar.gz libtdevnc-462ffd3f3eddd9b428e76b0fd32d3f988660bac0.zip |
fix annoying zrle decoding bug
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | libvncclient/zrle.c | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-06-28 Johannes E. Schindelin <Johannes.Schindelin@gmx.de> + * libvncclient/zrle.c: fix handling of raw and fill subtypes + (off-by-one and off-by-many bug) + 2005-06-27 Karl Runge <runge@karlrunge.com> * libvncserver/main.c: move deferUpdateTime and maxRectsPerUpdate defaults to before rfbProcessArguments(). @@ -1,7 +1,6 @@ immediate: ---------- -fix ZRLE errors (-9) VisualNaCro testing test IRIX -overlay (x11vnc) java vncviewer doesn't do colour cursors? diff --git a/libvncclient/zrle.c b/libvncclient/zrle.c index 53ae6f1..9061910 100644 --- a/libvncclient/zrle.c +++ b/libvncclient/zrle.c @@ -229,6 +229,7 @@ static int HandleZRLETile(rfbClient* client, ((CARDBPP*)client->frameBuffer)[j+i] = UncompressCPixel(buffer); #else CopyRectangle(client, buffer, x, y, w, h); + buffer+=w*h*REALBPP/8; #endif break; } @@ -241,6 +242,8 @@ static int HandleZRLETile(rfbClient* client, FillRectangle(client, x, y, w, h, color); + buffer+=REALBPP/8; + break; } case 2 ... 127: /* packed Palette */ |