summaryrefslogtreecommitdiffstats
path: root/x11vnc/screen.c
diff options
context:
space:
mode:
authorrunge <runge>2009-01-10 23:03:24 +0000
committerrunge <runge>2009-01-10 23:03:24 +0000
commit198382dcf3c9b86919b7b69b9cedff7a162ba9cf (patch)
treea06b4a4d410e28439da2b63b4848bc142f918292 /x11vnc/screen.c
parent91174efbb8e2fb09520477af6593f99b865777b0 (diff)
downloadlibtdevnc-198382dc.tar.gz
libtdevnc-198382dc.zip
x11vnc: fix failure of -8to24 on default depth 24 due to
nonstandard indexed color support changes. Fix small window for failure after XSendEvent selection call; add env var. X11VNC_SENDEVENT_SYNC=1 to take even more care.
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r--x11vnc/screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c
index a65230d..f66450a 100644
--- a/x11vnc/screen.c
+++ b/x11vnc/screen.c
@@ -194,7 +194,9 @@ void set_colormap(int reset) {
}
if (init) {
- if (depth > 8) {
+ if (depth > 16) {
+ ncolor = NCOLOR;
+ } else if (depth > 8) {
ncolor = 1 << depth;
} else {
ncolor = NCOLOR;