mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-10 11:56:27 +00:00
GetCurrentMonitor() bugfix (#3058)
* GetCurrentMonitor() bugfix * GetCurrentMonitor() bugfix
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user