diff options
-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 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); } |