mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-21 23:07:14 -05:00
Update rcore_desktop_glfw.c
This commit is contained in:
@ -275,12 +275,7 @@ void ToggleBorderlessWindowed(void)
|
|||||||
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_UNDECORATED);
|
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_UNDECORATED);
|
||||||
|
|
||||||
// Get monitor position and size
|
// Get monitor position and size
|
||||||
int monitorPosX = 0;
|
glfwGetMonitorPos(monitors[monitor], &CORE.Window.position.x, &CORE.Window.position.y);
|
||||||
int monitorPosY = 0;
|
|
||||||
glfwGetMonitorPos(monitors[monitor], &monitorPosX, &monitorPosY);
|
|
||||||
CORE.Window.position.x = monitorPosX;
|
|
||||||
CORE.Window.position.y = monitorPosY;
|
|
||||||
|
|
||||||
CORE.Window.screen.width = mode->width;
|
CORE.Window.screen.width = mode->width;
|
||||||
CORE.Window.screen.height = mode->height;
|
CORE.Window.screen.height = mode->height;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user