Commit a29e42e5 authored by runge's avatar runge

libvncclient: rfbResizeFrameBuffer should also set updateRect.

parent a3c971ba
2010-05-08 Karl Runge <runge@karlrunge.com>
* libvncclient/rfbproto.c: rfbResizeFrameBuffer should also set
updateRect.
2010-01-02 Karl Runge <runge@karlrunge.com> 2010-01-02 Karl Runge <runge@karlrunge.com>
* tightvnc-filetransfer/rfbtightserver.c: enabled fix * tightvnc-filetransfer/rfbtightserver.c: enabled fix
for tight security type for RFB 3.8 (debian bug 517422.) for tight security type for RFB 3.8 (debian bug 517422.)
......
...@@ -1542,6 +1542,9 @@ HandleRFBServerMessage(rfbClient* client) ...@@ -1542,6 +1542,9 @@ HandleRFBServerMessage(rfbClient* client)
if (rect.encoding == rfbEncodingNewFBSize) { if (rect.encoding == rfbEncodingNewFBSize) {
client->width = rect.r.w; client->width = rect.r.w;
client->height = rect.r.h; 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); client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, rect.r.w, rect.r.h, FALSE); 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); rfbClientLog("Got new framebuffer size: %dx%d\n", rect.r.w, rect.r.h);
...@@ -1974,6 +1977,9 @@ HandleRFBServerMessage(rfbClient* client) ...@@ -1974,6 +1977,9 @@ HandleRFBServerMessage(rfbClient* client)
return FALSE; return FALSE;
client->width = rfbClientSwap16IfLE(msg.rsfb.framebufferWidth); client->width = rfbClientSwap16IfLE(msg.rsfb.framebufferWidth);
client->height = rfbClientSwap16IfLE(msg.rsfb.framebufferHeigth); 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); client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE); SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE);
rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height); rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height);
...@@ -1987,6 +1993,9 @@ HandleRFBServerMessage(rfbClient* client) ...@@ -1987,6 +1993,9 @@ HandleRFBServerMessage(rfbClient* client)
return FALSE; return FALSE;
client->width = rfbClientSwap16IfLE(msg.prsfb.buffer_w); client->width = rfbClientSwap16IfLE(msg.prsfb.buffer_w);
client->height = rfbClientSwap16IfLE(msg.prsfb.buffer_h); 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); client->MallocFrameBuffer(client);
SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE); SendFramebufferUpdateRequest(client, 0, 0, client->width, client->height, FALSE);
rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height); rfbClientLog("Got new framebuffer size: %dx%d\n", client->width, client->height);
......
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