winport - fix bug using all available window size when maximizing and fullscreening
This commit is contained in:
parent
3dc860b248
commit
6ed5cf8420
|
@ -29,6 +29,9 @@
|
||||||
#include "IORegView.h"
|
#include "IORegView.h"
|
||||||
#include "windriver.h"
|
#include "windriver.h"
|
||||||
|
|
||||||
|
|
||||||
|
extern bool fsWindow;
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// The Toolkit - Helpers
|
// The Toolkit - Helpers
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -660,7 +663,8 @@ void WINCLASS::sizingMsg(WPARAM wParam, LPARAM lParam, LONG keepRatio)
|
||||||
int frameHeight = frameInfo.bottom-frameInfo.top + tbheight;
|
int frameHeight = frameInfo.bottom-frameInfo.top + tbheight;
|
||||||
|
|
||||||
if((keepRatio & FULLSCREEN))
|
if((keepRatio & FULLSCREEN))
|
||||||
frameWidth = frameHeight = 0;
|
if(fsWindow)
|
||||||
|
frameWidth = frameHeight = 0;
|
||||||
|
|
||||||
// Calculate the minimum size in pixels
|
// Calculate the minimum size in pixels
|
||||||
_minWidth = adjr.right-adjr.left;
|
_minWidth = adjr.right-adjr.left;
|
||||||
|
|
Loading…
Reference in New Issue