From 6ed5cf842041dd01970dd27c8870f01e4714e336 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 16 Jan 2019 00:10:25 -0500 Subject: [PATCH] winport - fix bug using all available window size when maximizing and fullscreening --- desmume/src/frontend/windows/CWindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desmume/src/frontend/windows/CWindow.cpp b/desmume/src/frontend/windows/CWindow.cpp index 90a999937..c9eec6adf 100644 --- a/desmume/src/frontend/windows/CWindow.cpp +++ b/desmume/src/frontend/windows/CWindow.cpp @@ -29,6 +29,9 @@ #include "IORegView.h" #include "windriver.h" + +extern bool fsWindow; + //----------------------------------------------------------------------------- // The Toolkit - Helpers //----------------------------------------------------------------------------- @@ -660,7 +663,8 @@ void WINCLASS::sizingMsg(WPARAM wParam, LPARAM lParam, LONG keepRatio) int frameHeight = frameInfo.bottom-frameInfo.top + tbheight; if((keepRatio & FULLSCREEN)) - frameWidth = frameHeight = 0; + if(fsWindow) + frameWidth = frameHeight = 0; // Calculate the minimum size in pixels _minWidth = adjr.right-adjr.left;