Sfoglia il codice sorgente

GetCurrentMonitor() - check window center instead of top-left corner (#3468)

pull/3472/head
Alexandre Almeida 1 anno fa
committed by GitHub
parent
commit
2f6b2897fe
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/platforms/rcore_desktop.c

+ 2
- 0
src/platforms/rcore_desktop.c Vedi File

@ -755,6 +755,8 @@ int GetCurrentMonitor(void)
int y = 0;
glfwGetWindowPos(platform.handle, &x, &y);
x += (int)CORE.Window.screen.width / 2;
y += (int)CORE.Window.screen.height / 2;
for (int i = 0; i < monitorCount; i++)
{

Caricamento…
Annulla
Salva