summaryrefslogtreecommitdiffstats
path: root/libvncclient/zrle.c
diff options
context:
space:
mode:
authordscho <dscho>2005-06-28 14:30:08 +0000
committerdscho <dscho>2005-06-28 14:30:08 +0000
commit462ffd3f3eddd9b428e76b0fd32d3f988660bac0 (patch)
tree7526ccd15bedba6732fc5a5c6c10080ebba3d347 /libvncclient/zrle.c
parent9d43e8af78ae6668a505f66379f80524c0047322 (diff)
downloadlibvncserver-462ffd3f3eddd9b428e76b0fd32d3f988660bac0.zip
libvncserver-462ffd3f3eddd9b428e76b0fd32d3f988660bac0.tar.gz
fix annoying zrle decoding bug
Diffstat (limited to 'libvncclient/zrle.c')
-rw-r--r--libvncclient/zrle.c3
1 files changed, 3 insertions, 0 deletions
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 */
OpenPOWER on IntegriCloud