Added DesktopWindow::fitBufferToWindow() method.
It's used to scale buffer to the vncviewer client window.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@643 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h
index f471fcc..f0db427 100644
--- a/win/vncviewer/DesktopWindow.h
+++ b/win/vncviewer/DesktopWindow.h
@@ -83,6 +83,7 @@
       void setSize(int w, int h);
       void setColour(int i, int r, int g, int b) {buffer->setColour(i, r, g, b);}
       void setDesktopScale(int scale);
+      void fitBufferToWindow(bool repaint = true);
 
       // - Set the cursor to render when the pointer is within the desktop buffer
       void setCursor(int w, int h, const Point& hotspot, void* data, void* mask);
@@ -236,6 +237,7 @@
 
       // Local window state
       win32::ScaledDIBSectionBuffer* buffer;
+      double aspect_corr;
       bool has_focus;
       Rect window_size;
       Rect client_size;