winport - fix bug using all available window size when maximizing and fullscreening

This commit is contained in:
zeromus 2019-01-16 00:10:25 -05:00
parent 3dc860b248
commit 6ed5cf8420
1 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,9 @@
#include "IORegView.h"
#include "windriver.h"
extern bool fsWindow;
//-----------------------------------------------------------------------------
// The Toolkit - Helpers
//-----------------------------------------------------------------------------
@ -660,6 +663,7 @@ void WINCLASS::sizingMsg(WPARAM wParam, LPARAM lParam, LONG keepRatio)
int frameHeight = frameInfo.bottom-frameInfo.top + tbheight;
if((keepRatio & FULLSCREEN))
if(fsWindow)
frameWidth = frameHeight = 0;
// Calculate the minimum size in pixels