summaryrefslogtreecommitdiffstats
path: root/x11vnc/unixpw.c
diff options
context:
space:
mode:
authorrunge <runge>2008-10-19 16:16:41 +0000
committerrunge <runge>2008-10-19 16:16:41 +0000
commit1c03dd4d51a35103e93c3adaf1f619c868324c77 (patch)
treeacbd2c41501e1c491023ab36717febdab32aff03 /x11vnc/unixpw.c
parent16c7ea1b357ab518ee5a40f2a663843f064479a9 (diff)
downloadlibtdevnc-1c03dd4d51a35103e93c3adaf1f619c868324c77.tar.gz
libtdevnc-1c03dd4d51a35103e93c3adaf1f619c868324c77.zip
x11vnc: -chatwindow, -scale WxH, -enc changes.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r--x11vnc/unixpw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
index 9fd2e4e..dcb1581 100644
--- a/x11vnc/unixpw.c
+++ b/x11vnc/unixpw.c
@@ -155,8 +155,8 @@ void unixpw_screen(int init) {
y = dpy_y / 4;
if (scaling) {
- x = (int) (x * scale_fac);
- y = (int) (y * scale_fac);
+ x = (int) (x * scale_fac_x);
+ y = (int) (y * scale_fac_y);
x = nfix(x, scaled_x);
y = nfix(y, scaled_y);
}
@@ -1231,10 +1231,10 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
x = text_x();
y = text_y();
if (scaling) {
- int x2 = x / scale_fac;
- int y2 = y / scale_fac;
- int w2 = char_w / scale_fac;
- int h2 = char_h / scale_fac;
+ int x2 = x / scale_fac_x;
+ int y2 = y / scale_fac_y;
+ int w2 = char_w / scale_fac_x;
+ int h2 = char_h / scale_fac_y;
x2 = nfix(x2, dpy_x);
y2 = nfix(y2, dpy_y);