diff options
Diffstat (limited to 'libvncclient/vncviewer.c')
-rw-r--r-- | libvncclient/vncviewer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 094ba34..6541c1d 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -221,13 +221,13 @@ static rfbBool rfbInitConnection(rfbClient* client) if (!InitialiseRFBConnection(client)) return FALSE; - if (!SetFormatAndEncodings(client)) - return FALSE; - client->width=client->si.framebufferWidth; client->height=client->si.framebufferHeight; client->MallocFrameBuffer(client); + if (!SetFormatAndEncodings(client)) + return FALSE; + if (client->updateRect.x < 0) { client->updateRect.x = client->updateRect.y = 0; client->updateRect.w = client->width; |