瀏覽代碼

Implement GetCurrentMonitor in rcore_desktop_sdl (#3431)

* Implemented GetCurrentMonitor

* remove traceloog in GetCurrentMonitor
Dor Shapira 2 年之前
父節點
當前提交
af83764f4f
共有 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
 // 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