summaryrefslogtreecommitdiffstats
path: root/libvncclient/vncviewer.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2015-04-17 12:31:13 +0200
committerChristian Beier <dontmind@freeshell.org>2015-04-17 12:31:13 +0200
commit7c7e8e765c06a8af13c1f2662f1c7084c937738a (patch)
treeacc64cdd41616efd5958005acce5d2dca435e407 /libvncclient/vncviewer.c
parente543e1ac1b11a0ef0b1bdd25b06a27b3ac2156c2 (diff)
downloadlibtdevnc-7c7e8e765c06a8af13c1f2662f1c7084c937738a.tar.gz
libtdevnc-7c7e8e765c06a8af13c1f2662f1c7084c937738a.zip
Re-add the useful bits of 9aa9ac59b4cb10bfca93456a3098e348de172d7f.
Diffstat (limited to 'libvncclient/vncviewer.c')
-rw-r--r--libvncclient/vncviewer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index 4f87f01..af0a50b 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -154,6 +154,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
/* default: use complete frame buffer */
client->updateRect.x = -1;
+ client->frameBuffer = NULL;
+ client->outputWindow = 0;
+
client->format.bitsPerPixel = bytesPerPixel*8;
client->format.depth = bitsPerSample*samplesPerPixel;
client->appData.requestedDepth=client->format.depth;