Pārlūkot izejas kodu

GetCurrentMonitor() bugfix (#3058)

* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
pull/3066/head
hamyy pirms 1 gada
committed by GitHub
vecāks
revīzija
26a3536958
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c Parādīt failu

@ -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;

Notiek ielāde…
Atcelt
Saglabāt