summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-05-08 20:03:56 -0400
committerrunge <runge@karlrunge.com>2010-05-08 20:03:56 -0400
commita29e42e515d5a99e29ab777159d04c213b7ceaa7 (patch)
tree050979bb69fc530d118b7a3780bddbbd7a25a4f5
parenta3c971bac6e99ac7c025f0ec22c04720f1946aca (diff)
downloadlibtdevnc-a29e42e5.tar.gz
libtdevnc-a29e42e5.zip
libvncclient: rfbResizeFrameBuffer should also set updateRect.
-rw-r--r--ChangeLog4
-rw-r--r--libvncclient/rfbproto.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cd4d799..efbaf3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-08 Karl Runge <runge@karlrunge.com>
+ * libvncclient/rfbproto.c: rfbResizeFrameBuffer should also set
+ updateRect.
+
2010-01-02 Karl Runge <runge@karlrunge.com>
* tightvnc-filetransfer/rfbtightserver.c: enabled fix
for tight security type for RFB 3.8 (debian bug 517422.)
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index b31ca25..33307d2 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -1542,6 +1542,9 @@ HandleRFBServerMessage(rfbClient* client)
if (rect.encoding == rfbEncodingNewFBSize) {
client->width = rect.r.w;
client->height = rect.r.h;
+ client->updateRect.x = client->updateRect.y = 0;
+ client->updateRect.w = client->width;
+ client->updateRect.h = client->height;
client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, rect.r.w, rect.r.h, FALSE);
rfbClientLog("Got new framebuffer size: %dx%d\n", rect.r.w, rect.r.h);
@@ -1974,6 +1977,9 @@ HandleRFBServerMessage(rfbClient* client)
return FALSE;
client->width = rfbClientSwap16IfLE(msg.rsfb.framebufferWidth);
client->height = rfbClientSwap16IfLE(msg.rsfb.framebufferHeigth);
+ client->updateRect.x = client->updateRect.y = 0;
+ client->updateRect.w = client->width;
+ client->updateRect.h = client->height;
client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE);
rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height);
@@ -1987,6 +1993,9 @@ HandleRFBServerMessage(rfbClient* client)
return FALSE;
client->width = rfbClientSwap16IfLE(msg.prsfb.buffer_w);
client->height = rfbClientSwap16IfLE(msg.prsfb.buffer_h);
+ client->updateRect.x = client->updateRect.y = 0;
+ client->updateRect.w = client->width;
+ client->updateRect.h = client->height;
client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE);
rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height);