GetCurrentMonitor() - check window center instead of top-left corner

This commit is contained in:
M374LX 2023-10-25 19:58:25 -03:00
parent cb1c2ffda1
commit 56d7c823ec

View File

@ -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++)
{