summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_desktop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c
index b43a6b5a..1114181a 100644
--- a/src/platforms/rcore_desktop.c
+++ b/src/platforms/rcore_desktop.c
@@ -755,6 +755,8 @@ int GetCurrentMonitor(void)
int y = 0;
glfwGetWindowPos(platform.handle, &x, &y);
+ x += (int)CORE.Window.screen.width / 2;
+ y += (int)CORE.Window.screen.height / 2;
for (int i = 0; i < monitorCount; i++)
{