summaryrefslogtreecommitdiffstats
path: root/x11vnc/screen.c
diff options
context:
space:
mode:
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;
OpenPOWER on IntegriCloud