GetCurrentMonitor() bugfix (#3058)

* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
This commit is contained in:
hamyy 2023-05-15 05:20:43 +10:00 committed by GitHub
parent 818312683e
commit 26a3536958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;