Procházet zdrojové kódy

Implement GetCurrentMonitor in rcore_desktop_sdl (#3431)

* Implemented GetCurrentMonitor

* remove traceloog in GetCurrentMonitor
pull/3433/head
Dor Shapira před 2 roky
odevzdal GitHub
rodič
revize
af83764f4f
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. +1
    -2
      src/rcore_desktop_sdl.c

+ 1
- 2
src/rcore_desktop_sdl.c Zobrazit soubor

@ -356,8 +356,7 @@ int GetMonitorCount(void)
// Get number of monitors // Get number of monitors
int GetCurrentMonitor(void) int GetCurrentMonitor(void)
{ {
TRACELOG(LOG_WARNING, "GetCurrentMonitor() not implemented on target platform");
return 0;
return SDL_GetWindowDisplayIndex(platform.window);
} }
// Get selected monitor position // Get selected monitor position

Načítá se…
Zrušit
Uložit