diff options
author | runge <runge> | 2006-07-28 20:28:16 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-28 20:28:16 +0000 |
commit | 521f0338af52506e079a5075fbe9350904a67269 (patch) | |
tree | 42e67d78a1826f9c24520d52bcde91a9aaec2a2e /x11vnc/pointer.c | |
parent | 901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (diff) | |
download | libtdevnc-521f0338af52506e079a5075fbe9350904a67269.tar.gz libtdevnc-521f0338af52506e079a5075fbe9350904a67269.zip |
x11vnc: -rotate option
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r-- | x11vnc/pointer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c index 81581d1..700fda0 100644 --- a/x11vnc/pointer.c +++ b/x11vnc/pointer.c @@ -646,6 +646,10 @@ void pointer(int mask, int x, int y, rfbClientPtr client) { return; } + if (rotating) { + rotate_coords_inverse(x, y, &x, &y, -1, -1); + } + if (scaling) { /* map from rfb size to X11 size: */ x = ((double) x / scaled_x) * dpy_x; |