small simplification
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1720 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
714b3d2246
commit
a069a66084
@ -1640,8 +1640,7 @@ void fgPlatformPosResZordWork(SFG_Window* window, unsigned int workMask)
|
||||
/* For fullscreen mode, find the monitor that is covered the most
|
||||
* by the window and get its rect as the resize target.
|
||||
*/
|
||||
GetWindowRect(window->Window.Handle, &rect);
|
||||
hMonitor= MonitorFromRect(&rect, MONITOR_DEFAULTTONEAREST);
|
||||
hMonitor= MonitorFromWindow(window->Window.Handle, MONITOR_DEFAULTTONEAREST);
|
||||
mi.cbSize = sizeof(mi);
|
||||
GetMonitorInfo(hMonitor, &mi);
|
||||
rect = mi.rcMonitor;
|
||||
|
Reference in New Issue
Block a user