Pārlūkot izejas kodu

Implement GetCurrentMonitor in rcore_desktop_sdl (#3431)

* Implemented GetCurrentMonitor

* remove traceloog in GetCurrentMonitor
pull/3433/head
Dor Shapira pirms 2 gadiem
committed by GitHub
vecāks
revīzija
af83764f4f
Š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 2 dzēšanām
  1. +1
    -2
      src/rcore_desktop_sdl.c

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

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

Notiek ielāde…
Atcelt
Saglabāt