GetCurrentMonitor() bugfix

This commit is contained in:
hamyyy 2023-05-13 17:27:33 +10:00
parent 5978358e58
commit 40436cd70d
2 changed files with 4 additions and 1 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"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;