summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorhamyy <[email protected]>2023-05-15 05:20:43 +1000
committerGitHub <[email protected]>2023-05-14 21:20:43 +0200
commit26a3536958e9d4d641edbff0530c41625871b6be (patch)
tree34964289784e463dbc77c7668eba0752ffb7a090 /src
parent818312683ee92efde550f7eaa88fcceb773eaf0b (diff)
downloadraylib-26a3536958e9d4d641edbff0530c41625871b6be.tar.gz
raylib-26a3536958e9d4d641edbff0530c41625871b6be.zip
GetCurrentMonitor() bugfix (#3058)
* GetCurrentMonitor() bugfix * GetCurrentMonitor() bugfix
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c2
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;