aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-03-20 04:31:32 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-03-20 04:31:32 +0000
commitdb5a10f68714f6010f526cf07774da25b9bd2a06 (patch)
tree210abd29def4af3fbbc9cef2958b06c7be4320ed /win
parent4880eec8c05297d72615f2556d9b5f010bb2b6cf (diff)
downloadtigervnc-db5a10f68714f6010f526cf07774da25b9bd2a06.tar.gz
tigervnc-db5a10f68714f6010f526cf07774da25b9bd2a06.zip
Don't resize the maximized desktop window when vncviewer change the scale
factor. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2239 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r--win/vncviewer/DesktopWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx
index ab5f580a..31018d12 100644
--- a/win/vncviewer/DesktopWindow.cxx
+++ b/win/vncviewer/DesktopWindow.cxx
@@ -1019,7 +1019,7 @@ void DesktopWindow::setDesktopScale(int scale_) {
state ^= buffer->isScaling();
if (state) convertCursorToBuffer();
if (isToolbarEnabled()) refreshToolbarButtons();
- if (!isAutoScaling() && !isFullscreen()) resizeDesktopWindowToBuffer();
+ if (!(isAutoScaling() || isFullscreen() || (GetWindowLong(handle, GWL_STYLE) & WS_MAXIMIZE))) resizeDesktopWindowToBuffer();
printScale();
InvalidateRect(frameHandle, 0, FALSE);
}