diff options
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r-- | x11vnc/x11vnc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index f3811c7..020df6e 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -1273,6 +1273,12 @@ int main(int argc, char* argv[]) { overlay_cursor = 2; } else if (!strcmp(arg, "-8to24")) { cmap8to24 = 1; + if (i < argc-1) { + char *s = argv[i+1]; + if (s[0] != '-') { + cmap8to24_str = strdup(s); + } + } } else if (!strcmp(arg, "-visual")) { CHECK_ARGC visual_str = strdup(argv[++i]); |