summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.c
diff options
context:
space:
mode:
authorrunge <runge>2006-01-22 03:56:23 +0000
committerrunge <runge>2006-01-22 03:56:23 +0000
commit1967913e9530139eb355b7b3108bb12314ba47da (patch)
treef6bcde8135b62c53d9c9a99cf4a655a6bad86b74 /x11vnc/x11vnc.c
parent17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4 (diff)
downloadlibtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.tar.gz
libtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.zip
x11vnc: -8to24 opts, use XGetSubImage. fix -threads deadlocks and -rawfb crash
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r--x11vnc/x11vnc.c6
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]);