summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/rcore_desktop_sdl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rcore_desktop_sdl.c b/src/rcore_desktop_sdl.c
index 4ce09cf8..7f593abc 100644
--- a/src/rcore_desktop_sdl.c
+++ b/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