summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-28 20:28:16 +0000
committerrunge <runge>2006-07-28 20:28:16 +0000
commit521f0338af52506e079a5075fbe9350904a67269 (patch)
tree42e67d78a1826f9c24520d52bcde91a9aaec2a2e /x11vnc/user.c
parent901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (diff)
downloadlibvncserver-521f0338af52506e079a5075fbe9350904a67269.zip
libvncserver-521f0338af52506e079a5075fbe9350904a67269.tar.gz
x11vnc: -rotate option
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 734d85b..d41faa7 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -1041,6 +1041,7 @@ void user_supplied_opts(char *opts) {
"scale", "scale_cursor", "sc", "solid", "so", "id",
"clear_mods", "cm", "clear_keys", "ck", "repeat",
"speeds", "sp", "readtimeout", "rd",
+ "rotate", "ro",
NULL
};
@@ -1089,6 +1090,11 @@ void user_supplied_opts(char *opts) {
if (scale_cursor_str) free(scale_cursor_str);
q = strchr(p, '=') + 1;
scale_cursor_str = strdup(q);
+ } else if (strstr(p, "rotate=") == p ||
+ strstr(p, "ro=") == p) {
+ if (rotating_str) free(rotating_str);
+ q = strchr(p, '=') + 1;
+ rotating_str = strdup(q);
} else if (!strcmp(p, "solid") || !strcmp(p, "so")) {
use_solid_bg = 1;
if (!solid_str) {
OpenPOWER on IntegriCloud