Added the autoScaling mode implementation to the vncviewer.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@645 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/vncviewer/DesktopWindow.h b/win/vncviewer/DesktopWindow.h
index f0db427..c24b0ce 100644
--- a/win/vncviewer/DesktopWindow.h
+++ b/win/vncviewer/DesktopWindow.h
@@ -82,6 +82,11 @@
PixelFormat getPF() const { return buffer->getPF(); }
void setSize(int w, int h);
void setColour(int i, int r, int g, int b) {buffer->setColour(i, r, g, b);}
+ void setAutoScaling(bool as) {
+ autoScaling = as;
+ if (as) fitBufferToWindow();
+ }
+ bool isAutoScaling() const { return autoScaling; }
void setDesktopScale(int scale);
void fitBufferToWindow(bool repaint = true);
@@ -239,6 +244,7 @@
win32::ScaledDIBSectionBuffer* buffer;
double aspect_corr;
bool has_focus;
+ bool autoScaling;
Rect window_size;
Rect client_size;
Point scrolloffset;