summaryrefslogtreecommitdiffstats
path: root/libvncclient/zrle.c
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-11-04 23:18:36 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-10 14:22:59 +0100
commita4cc897222b8cbfb621d27c7c9f070dbbb05def9 (patch)
tree22ab803866eee61ea0982ad6e4963be88e8486f4 /libvncclient/zrle.c
parentf49a292783407c14869d811c05c2bbd009af27f7 (diff)
downloadlibvncserver-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.zip
libvncserver-a4cc897222b8cbfb621d27c7c9f070dbbb05def9.tar.gz
Fix various compilation warnings
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncclient/zrle.c')
-rw-r--r--libvncclient/zrle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncclient/zrle.c b/libvncclient/zrle.c
index 6ff3008..da2db4b 100644
--- a/libvncclient/zrle.c
+++ b/libvncclient/zrle.c
@@ -239,8 +239,10 @@ static int HandleZRLETile(rfbClient* client,
uint8_t* buffer_copy = buffer;
uint8_t* buffer_end = buffer+buffer_length;
uint8_t type;
+#if BPP!=8
uint8_t zywrle_level = (client->appData.qualityLevel & 0x80) ?
0 : (3 - client->appData.qualityLevel / 3);
+#endif
if(buffer_length<1)
return -2;
OpenPOWER on IntegriCloud