summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/win32_winproc.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-11 08:54:25 -0600
committerBrian Paul <[email protected]>2009-08-11 08:54:25 -0600
commita9d37f68377df851350d773cf53ca6d873e92aa1 (patch)
tree835192ef9b14531e2e45fd029aab15a2fc17e182 /src/glut/glx/win32_winproc.c
parent20e4421fe3e938f5904d53661ce8d47163db491b (diff)
glut: fix incorrect Vista maximisation size due to WM_GETMINMAXINFO handling
See bug 23182.
Diffstat (limited to 'src/glut/glx/win32_winproc.c')
-rw-r--r--src/glut/glx/win32_winproc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glut/glx/win32_winproc.c b/src/glut/glx/win32_winproc.c
index 4a9dc3781c2..1b3a2978280 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 +