From 26a3536958e9d4d641edbff0530c41625871b6be Mon Sep 17 00:00:00 2001 From: hamyy Date: Mon, 15 May 2023 05:20:43 +1000 Subject: [PATCH] GetCurrentMonitor() bugfix (#3058) * GetCurrentMonitor() bugfix * GetCurrentMonitor() bugfix --- src/rcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index 476ea8e2f..881739c73 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;