Procházet zdrojové kódy

GetCurrentMonitor() bugfix (#3058)

* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
hamyy před 2 roky
rodič
revize
26a3536958
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/rcore.c

+ 1 - 1
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;