Sfoglia il codice sorgente

GetCurrentMonitor() bugfix (#3058)

* GetCurrentMonitor() bugfix

* GetCurrentMonitor() bugfix
pull/3066/head
hamyy 1 anno fa
committed by GitHub
parent
commit
26a3536958
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c Vedi File

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

Caricamento…
Annulla
Salva