]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed bug with wrong sizing the main window to the frame size.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 19 Feb 2005 13:54:38 +0000 (13:54 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 19 Feb 2005 13:54:38 +0000 (13:54 +0000)
We must take into the main menu.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@197 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index c7826d135b2f548775e526b83c4e509112a169a1..fd70d74819b6413cec2508a4d2ad33eb231986a8 100644 (file)
@@ -686,7 +686,7 @@ void RfbPlayer::setTitle(const char *title) {
 void RfbPlayer::setFrameSize(int width, int height) {
   // Calculate and set required size for main window
   RECT r = {0, 0, width, height};
-  AdjustWindowRectEx(&r, GetWindowLong(getFrameHandle(), GWL_STYLE), FALSE, 
+  AdjustWindowRectEx(&r, GetWindowLong(getFrameHandle(), GWL_STYLE), TRUE, 
     GetWindowLong(getFrameHandle(), GWL_EXSTYLE));
   r.bottom += CTRL_BAR_HEIGHT; // Include RfbPlayr's controls area
   AdjustWindowRect(&r, GetWindowLong(getMainHandle(), GWL_STYLE), FALSE);