GetCurrentMonitor() bugfix (#3058)
* GetCurrentMonitor() bugfix * GetCurrentMonitor() bugfix
This commit is contained in:
parent
818312683e
commit
26a3536958
1 changed files with 1 additions and 1 deletions
|
@ -1785,7 +1785,7 @@ int GetCurrentMonitor(void)
|
||||||
monitor = monitors[i];
|
monitor = monitors[i];
|
||||||
glfwGetMonitorWorkarea(monitor, &mx, &my, &width, &height);
|
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;
|
index = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue