From: <dc...@us...> - 2017-05-14 20:49:49
|
Revision: 1800 http://sourceforge.net/p/freeglut/code/1800 Author: dcnieho Date: 2017-05-14 20:49:46 +0000 (Sun, 14 May 2017) Log Message: ----------- Ensure "maximixed" is taken into account when updating window visibility on WM_SIZE (cherry picked from commit 5b8a164de14fe3de4c67b8348c10e2711f481cd5) Modified Paths: -------------- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c Modified: trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c =================================================================== --- trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2017-04-26 08:45:38 UTC (rev 1799) +++ trunk/freeglut/freeglut/src/mswin/fg_main_mswin.c 2017-05-14 20:49:46 UTC (rev 1800) @@ -874,7 +874,7 @@ /* Update visibility state of the window */ if (wParam==SIZE_MINIMIZED) fghPlatformOnWindowStatusNotify(window,GL_FALSE,GL_FALSE); - else if (wParam==SIZE_RESTORED && !window->State.Visible) + else if ((wParam==SIZE_RESTORED || wParam == SIZE_MAXIMIZED) && !window->State.Visible) fghPlatformOnWindowStatusNotify(window,GL_TRUE,GL_FALSE); /* Check window visible, we don't want do anything when we get a WM_SIZE because the user or glutIconifyWindow minimized the window */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |