summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDor Shapira <[email protected]>2023-10-17 10:53:53 +0300
committerGitHub <[email protected]>2023-10-17 09:53:53 +0200
commitaf83764f4fe83d9f036fab94a6ab886ffdf82587 (patch)
tree8cca643e6c7a3ac6cee18e1bea0b03ae667453e7 /src
parentfab99b8309b483f81c8a7b2524da0e0e0079560f (diff)
downloadraylib-af83764f4fe83d9f036fab94a6ab886ffdf82587.tar.gz
raylib-af83764f4fe83d9f036fab94a6ab886ffdf82587.zip
Implement GetCurrentMonitor in rcore_desktop_sdl (#3431)
* Implemented GetCurrentMonitor * remove traceloog in GetCurrentMonitor
Diffstat (limited to 'src')
-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