Use glfwSetWindowMonitor instead of Pos and Size GLFW functions
This commit is contained in:
parent
3ba186f2c1
commit
2b1d88cb98
|
|
@ -265,8 +265,18 @@ void ToggleBorderlessWindowed(void)
|
||||||
const int monitorHeight = mode->height;
|
const int monitorHeight = mode->height;
|
||||||
|
|
||||||
// Set screen position and size
|
// Set screen position and size
|
||||||
glfwSetWindowPos(platform.handle, monitorPosX, monitorPosY);
|
glfwSetWindowMonitor(
|
||||||
glfwSetWindowSize(platform.handle, monitorWidth, monitorHeight);
|
platform.handle,
|
||||||
|
monitors[monitor],
|
||||||
|
monitorPosX,
|
||||||
|
monitorPosY,
|
||||||
|
monitorWidth,
|
||||||
|
monitorHeight,
|
||||||
|
mode->refreshRate
|
||||||
|
);
|
||||||
|
|
||||||
|
// glfwSetWindowPos(platform.handle, monitorPosX, monitorPosY);
|
||||||
|
// glfwSetWindowSize(platform.handle, monitorWidth, monitorHeight);
|
||||||
|
|
||||||
// Refocus window
|
// Refocus window
|
||||||
glfwFocusWindow(platform.handle);
|
glfwFocusWindow(platform.handle);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user