diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-10 08:55:35 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-10 08:55:35 +0000 |
commit | 2446ed081f1631e7feaca9e89c7fb4024bf62eb2 (patch) | |
tree | 79ee9db2278b185dfb50be0f3ab6461ac15966e1 /win/vncviewer/DesktopWindow.h | |
parent | f0775131d6ede2806899f6f53b33dcec15be247f (diff) | |
download | tigervnc-2446ed081f1631e7feaca9e89c7fb4024bf62eb2.tar.gz tigervnc-2446ed081f1631e7feaca9e89c7fb4024bf62eb2.zip |
Fixed the bug with crashing vncviewer when it works in the
scaling mode and scale < 10%.
Scale part of vncviewer code improvements.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2232 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer/DesktopWindow.h')
-rw-r--r-- | win/vncviewer/DesktopWindow.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h index bce7cf72..7a8fa2c3 100644 --- a/win/vncviewer/DesktopWindow.h +++ b/win/vncviewer/DesktopWindow.h @@ -88,8 +88,7 @@ namespace rfb { void setColour(int i, int r, int g, int b) {buffer->setColour(i, r, g, b);} void setAutoScaling(bool as); bool isAutoScaling() const { return autoScaling; } - void setDesktopScaleRatio(double scale_ratio); - void setDesktopScale(int scale) { setDesktopScaleRatio(double(scale)/100); } + void setDesktopScale(int scale); int getDesktopScale() const { return buffer->getScale(); } void fitBufferToWindow(bool repaint = true); |