Преглед на файлове

Implement GetCurrentMonitor in rcore_desktop_sdl (#3431)

* Implemented GetCurrentMonitor

* remove traceloog in GetCurrentMonitor
pull/3433/head
Dor Shapira преди 2 години
committed by GitHub
родител
ревизия
af83764f4f
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. +1
    -2
      src/rcore_desktop_sdl.c

+ 1
- 2
src/rcore_desktop_sdl.c Целия файл

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

Зареждане…
Отказ
Запис