Commits

Murat Sari committed 5010210

GL: Create render window on the primary monitor on a multi monitor setup (behavior is now the same as in DX)

Comments (0)

Files changed (2)

RenderSystems/GL/src/OgreWin32GLSupport.cpp

 
 
 				// Get the nearest monitor to this window.
-				hMonitor = MonitorFromPoint(windowAnchorPoint, MONITOR_DEFAULTTONEAREST);				
+				hMonitor = MonitorFromPoint(windowAnchorPoint, MONITOR_DEFAULTTOPRIMARY);				
 			}
 
 			newParams["monitorHandle"] = StringConverter::toString((size_t)hMonitor);																

RenderSystems/GL/src/OgreWin32Window.cpp

 
 
 				// Get the nearest monitor to this window.
-				hMonitor = MonitorFromPoint(windowAnchorPoint, MONITOR_DEFAULTTONEAREST);
+				hMonitor = MonitorFromPoint(windowAnchorPoint, MONITOR_DEFAULTTOPRIMARY);
 			}
 
 			// Get the target monitor info