|
|
|
@ -1284,15 +1284,16 @@ static int createNativeWindow(_GLFWwindow* window, |
|
|
|
|
|
|
|
|
|
if (window->monitor) |
|
|
|
|
{ |
|
|
|
|
GLFWvidmode mode; |
|
|
|
|
MONITORINFO mi = { sizeof(mi) }; |
|
|
|
|
GetMonitorInfoW(window->monitor->win32.handle, &mi); |
|
|
|
|
|
|
|
|
|
// NOTE: This window placement is temporary and approximate, as the
|
|
|
|
|
// correct position and size cannot be known until the monitor
|
|
|
|
|
// video mode has been picked in _glfwSetVideoModeWin32
|
|
|
|
|
_glfwGetMonitorPosWin32(window->monitor, &xpos, &ypos); |
|
|
|
|
_glfwGetVideoModeWin32(window->monitor, &mode); |
|
|
|
|
fullWidth = mode.width; |
|
|
|
|
fullHeight = mode.height; |
|
|
|
|
xpos = mi.rcMonitor.left; |
|
|
|
|
ypos = mi.rcMonitor.top; |
|
|
|
|
fullWidth = mi.rcMonitor.right - mi.rcMonitor.left; |
|
|
|
|
fullHeight = mi.rcMonitor.bottom - mi.rcMonitor.top; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|