Merge branch 'trunk' into git_master
This commit is contained in:
commit
376a810c05
@ -1640,8 +1640,7 @@ void fgPlatformPosResZordWork(SFG_Window* window, unsigned int workMask)
|
|||||||
/* For fullscreen mode, find the monitor that is covered the most
|
/* For fullscreen mode, find the monitor that is covered the most
|
||||||
* by the window and get its rect as the resize target.
|
* by the window and get its rect as the resize target.
|
||||||
*/
|
*/
|
||||||
GetWindowRect(window->Window.Handle, &rect);
|
hMonitor= MonitorFromWindow(window->Window.Handle, MONITOR_DEFAULTTONEAREST);
|
||||||
hMonitor= MonitorFromRect(&rect, MONITOR_DEFAULTTONEAREST);
|
|
||||||
mi.cbSize = sizeof(mi);
|
mi.cbSize = sizeof(mi);
|
||||||
GetMonitorInfo(hMonitor, &mi);
|
GetMonitorInfo(hMonitor, &mi);
|
||||||
rect = mi.rcMonitor;
|
rect = mi.rcMonitor;
|
||||||
|
Reference in New Issue
Block a user