Skip to content

Commit

Permalink
GetCurrentMonitor() bugfix (#3058)
Browse files Browse the repository at this point in the history
* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
  • Loading branch information
hamyyy committed May 14, 2023
1 parent 8183126 commit 26a3536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26a3536

Please sign in to comment.