diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-10 12:49:34 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2007-03-10 12:49:34 +0000 |
commit | 6d6e4af4c4d381f77890de7af7555e05ab37721f (patch) | |
tree | 2be6fddcf0d8566f1b71151637ddb6b4bd529ef3 /win/vncviewer | |
parent | 2446ed081f1631e7feaca9e89c7fb4024bf62eb2 (diff) | |
download | tigervnc-6d6e4af4c4d381f77890de7af7555e05ab37721f.tar.gz tigervnc-6d6e4af4c4d381f77890de7af7555e05ab37721f.zip |
Fixed the bug with wrong desktop window size of the
vncviewer when it starts in the scaling mode.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2233 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/vncviewer')
-rw-r--r-- | win/vncviewer/DesktopWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index 4a316ad5..679964a0 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -1013,7 +1013,7 @@ void DesktopWindow::setDesktopScale(int scale_) { if (buffer->getScale() == scale_ || scale_ <= 0) return; buffer->setScale(scale_); if (isToolbarEnabled()) refreshToolbarButtons(); - if (!isAutoScaling()) resizeDesktopWindowToBuffer(); + if (!isAutoScaling() && !isFullscreen()) resizeDesktopWindowToBuffer(); char *newTitle = new char[strlen(desktopName)+20]; sprintf(newTitle, "%s @ %i%%", desktopName, getDesktopScale()); SetWindowText(handle, TStr(newTitle)); |