mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
glut: fix incorrect Vista maximisation size due to WM_GETMINMAXINFO handling
See bug 23182.
This commit is contained in:
parent
20e4421fe3
commit
a9d37f6837
1 changed files with 5 additions and 0 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue