From f5fad95455bb3f9bd731451ea9811e3d0cc51660 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 26 Jan 2009 10:44:34 +0000 Subject: glut: Minor cleanups. --- src/glut/glx/win32_winproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glut/glx/win32_winproc.c') diff --git a/src/glut/glx/win32_winproc.c b/src/glut/glx/win32_winproc.c index e1fc785ebb..4a9dc3781c 100644 --- a/src/glut/glx/win32_winproc.c +++ b/src/glut/glx/win32_winproc.c @@ -20,10 +20,10 @@ extern unsigned __glutMenuButton; extern GLUTidleCB __glutIdleFunc; extern GLUTtimer *__glutTimerList; -extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, int unique); +extern GLUTmenuItem *__glutGetUniqueMenuItem(GLUTmenu * menu, UINT unique); static HMENU __glutHMenu; -void +static void updateWindowState(GLUTwindow *window, int visState) { GLUTwindow* child; -- cgit v1.2.3 From a9d37f68377df851350d773cf53ca6d873e92aa1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Aug 2009 08:54:25 -0600 Subject: glut: fix incorrect Vista maximisation size due to WM_GETMINMAXINFO handling See bug 23182. --- src/glut/glx/win32_winproc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glut/glx/win32_winproc.c') diff --git a/src/glut/glx/win32_winproc.c b/src/glut/glx/win32_winproc.c index 4a9dc3781c..1b3a297828 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 + -- cgit v1.2.3