Implemented GetCurrentMonitor

This commit is contained in:
דור שפירא 2023-10-17 00:04:50 +03:00
parent fab99b8309
commit a571563b7b

View File

@ -356,8 +356,8 @@ 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"); TRACELOG(LOG_WARNING, "Running on sdl");
return 0; return SDL_GetWindowDisplayIndex(platform.window);
} }
// Get selected monitor position // Get selected monitor position