summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 881739c7..31a06f7c 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1785,7 +1785,10 @@ 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;