diff options
author | Brian Paul <brianp@vmware.com> | 2009-08-11 08:54:25 -0600 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:05:25 +0100 |
commit | 92a4de30887d58ddd072a110ca839e10ace18b89 (patch) | |
tree | 2fbae2033cd8f4f93b0014ab0eea7358318171c2 | |
parent | e3c810acc708004fe30e76109443d4292e00079e (diff) | |
download | glut-92a4de30887d58ddd072a110ca839e10ace18b89.tar.gz |
glut: fix incorrect Vista maximisation size due to WM_GETMINMAXINFO handling
See bug 23182.
-rw-r--r-- | src/glut/glx/win32_winproc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glut/glx/win32_winproc.c b/src/glut/glx/win32_winproc.c index 4a9dc37..1b3a297 100644 --- a/src/glut/glx/win32_winproc.c +++ b/src/glut/glx/win32_winproc.c @@ -548,8 +548,13 @@ __glutWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) window to be bigger than the screen, and smaller than 100x100 (although it doesn't seem to help the y minimum). */ minmax = (LPMINMAXINFO)lParam; +#if 0 + /* These two lines are disabled to fix incorrect handling of + * window maximization on Vista. See bug 23182. + */ minmax->ptMaxSize.x = __glutScreenWidth; minmax->ptMaxSize.y = __glutScreenHeight; +#endif minmax->ptMinTrackSize.x = 0; minmax->ptMinTrackSize.y = 0; minmax->ptMaxTrackSize.x = __glutScreenWidth + |