Added DesktopWindow::resizeDesktopWindowToBuffer() method.
Now the Desktop Window resizes against the pixel buffer size
when the scale ratio changed.
This update fixes the bug with zero size of the desktop
window when it restore from minimized position.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2221 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h
index 11b6670..bce7cf7 100644
--- a/win/vncviewer/DesktopWindow.h
+++ b/win/vncviewer/DesktopWindow.h
@@ -214,6 +214,9 @@
       // window style accordingly
       void calculateScrollBars();
 
+      // Resizes the main window against the pixel buffer size
+      void resizeDesktopWindowToBuffer();
+
       // Win32-specific input handling
       rfb::win32::CPointer ptr;
       Point oldpos;