summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2006-01-15 03:58:48 +0000
committerrunge <runge>2006-01-15 03:58:48 +0000
commit5993dd757e5af00af6565b3411ea10fd46eafbdf (patch)
tree7450fdde25310857c88221a719f026a1a09336f7 /x11vnc/remote.c
parent60918e6664cd62ea3d71b48cdfda8b89ab82029c (diff)
downloadlibtdevnc-5993dd757e5af00af6565b3411ea10fd46eafbdf.tar.gz
libtdevnc-5993dd757e5af00af6565b3411ea10fd46eafbdf.zip
x11vnc: add -8to24 option for some multi-depth displays.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index 2a82ca8..64e915e 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -979,6 +979,24 @@ char *process_remote_cmd(char *cmd, int stringonly) {
rfbLog(" -R cursor:... to re-enable any cursors.\n");
}
+ } else if (!strcmp(p, "8to24")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, cmap8to24);
+ goto qry;
+ }
+ rfbLog("remote_cmd: turning on -8to24 mode.\n");
+ cmap8to24 = 1;
+ do_new_fb(0);
+
+ } else if (!strcmp(p, "no8to24")) {
+ if (query) {
+ snprintf(buf, bufn, "ans=%s:%d", p, !cmap8to24);
+ goto qry;
+ }
+ rfbLog("remote_cmd: turning off -8to24 mode.\n");
+ cmap8to24 = 0;
+ do_new_fb(0);
+
} else if (strstr(p, "visual") == p) {
COLON_CHECK("visual:")
if (query) {