Commit 462ffd3f authored by dscho's avatar dscho

fix annoying zrle decoding bug

parent 9d43e8af
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> 2005-06-27 Karl Runge <runge@karlrunge.com>
* libvncserver/main.c: move deferUpdateTime and maxRectsPerUpdate * libvncserver/main.c: move deferUpdateTime and maxRectsPerUpdate
defaults to before rfbProcessArguments(). defaults to before rfbProcessArguments().
......
immediate: immediate:
---------- ----------
fix ZRLE errors (-9)
VisualNaCro testing VisualNaCro testing
test IRIX -overlay (x11vnc) test IRIX -overlay (x11vnc)
java vncviewer doesn't do colour cursors? java vncviewer doesn't do colour cursors?
......
...@@ -229,6 +229,7 @@ static int HandleZRLETile(rfbClient* client, ...@@ -229,6 +229,7 @@ static int HandleZRLETile(rfbClient* client,
((CARDBPP*)client->frameBuffer)[j+i] = UncompressCPixel(buffer); ((CARDBPP*)client->frameBuffer)[j+i] = UncompressCPixel(buffer);
#else #else
CopyRectangle(client, buffer, x, y, w, h); CopyRectangle(client, buffer, x, y, w, h);
buffer+=w*h*REALBPP/8;
#endif #endif
break; break;
} }
...@@ -241,6 +242,8 @@ static int HandleZRLETile(rfbClient* client, ...@@ -241,6 +242,8 @@ static int HandleZRLETile(rfbClient* client,
FillRectangle(client, x, y, w, h, color); FillRectangle(client, x, y, w, h, color);
buffer+=REALBPP/8;
break; break;
} }
case 2 ... 127: /* packed Palette */ case 2 ... 127: /* packed Palette */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment