GetCurrentMonitor() bugfix
This commit is contained in:
parent
5978358e58
commit
40436cd70d
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue