Improved initial placement of full screen windows.
This commit is contained in:
parent
a257e7a3ee
commit
ec6f0811a0
@ -655,14 +655,17 @@ static int createWindow(_GLFWwindow* window,
|
|||||||
int xpos, ypos, fullWidth, fullHeight;
|
int xpos, ypos, fullWidth, fullHeight;
|
||||||
WCHAR* wideTitle;
|
WCHAR* wideTitle;
|
||||||
|
|
||||||
if (window->monitor)
|
if (wndconfig->monitor)
|
||||||
{
|
{
|
||||||
|
GLFWvidmode mode;
|
||||||
|
|
||||||
// NOTE: This window placement is temporary and approximate, as the
|
// NOTE: This window placement is temporary and approximate, as the
|
||||||
// correct position and size cannot be known until the monitor
|
// correct position and size cannot be known until the monitor
|
||||||
// video mode has been set
|
// video mode has been set
|
||||||
_glfwPlatformGetMonitorPos(wndconfig->monitor, &xpos, &ypos);
|
_glfwPlatformGetMonitorPos(wndconfig->monitor, &xpos, &ypos);
|
||||||
fullWidth = wndconfig->width;
|
_glfwPlatformGetVideoMode(wndconfig->monitor, &mode);
|
||||||
fullHeight = wndconfig->height;
|
fullWidth = mode.width;
|
||||||
|
fullHeight = mode.height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user