diff options
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r-- | x11vnc/screen.c | 4 |
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; |