GetCurrentMonitor() bugfix

This commit is contained in:
hamyyy 2023-05-13 17:29:40 +10:00
parent 40436cd70d
commit 7874171add
2 changed files with 1 additions and 4 deletions

View File

@ -1,3 +0,0 @@
{
"workbench.colorTheme": "Abyss"
}

View File

@ -1785,7 +1785,7 @@ int GetCurrentMonitor(void)
monitor = monitors[i];
glfwGetMonitorWorkarea(monitor, &mx, &my, &width, &height);
if (x >= mx && x <= (mx + width) && y > my && y < (my + height))
if (x >= mx && x < (mx + width) && y >= my && y < (my + height))
{
index = i;
break;