diff options
| author | hamyy <[email protected]> | 2023-05-15 05:20:43 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-14 21:20:43 +0200 |
| commit | 26a3536958e9d4d641edbff0530c41625871b6be (patch) | |
| tree | 34964289784e463dbc77c7668eba0752ffb7a090 /src | |
| parent | 818312683ee92efde550f7eaa88fcceb773eaf0b (diff) | |
| download | raylib-26a3536958e9d4d641edbff0530c41625871b6be.tar.gz raylib-26a3536958e9d4d641edbff0530c41625871b6be.zip | |
GetCurrentMonitor() bugfix (#3058)
* GetCurrentMonitor() bugfix
* GetCurrentMonitor() bugfix
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index 476ea8e2..881739c7 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -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; |
