diff --git a/src/rcore.c b/src/rcore.c index 8cac4c765..bd2de9c1d 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -431,15 +431,6 @@ bool IsWindowFullscreen(void) return CORE.Window.fullscreen; } -// Check if window is currently hidden -bool IsWindowHidden(void) -{ -#if defined(PLATFORM_DESKTOP) - return ((CORE.Window.flags & FLAG_WINDOW_HIDDEN) > 0); -#endif - return false; -} - // Check if window has been minimized bool IsWindowMinimized(void) { diff --git a/src/rcore_android.c b/src/rcore_android.c index aa4e68c4a..b84dd6645 100644 --- a/src/rcore_android.c +++ b/src/rcore_android.c @@ -1292,4 +1292,10 @@ bool WindowShouldClose(void) { if (CORE.Window.ready) return CORE.Window.shouldClose; else return true; -} \ No newline at end of file +} + +// Check if window is currently hidden +bool IsWindowHidden(void) +{ + return false; +} diff --git a/src/rcore_desktop.c b/src/rcore_desktop.c index a881f20d8..e2db53147 100644 --- a/src/rcore_desktop.c +++ b/src/rcore_desktop.c @@ -520,4 +520,10 @@ bool WindowShouldClose(void) return CORE.Window.shouldClose; } else return true; -} \ No newline at end of file +} + +// Check if window is currently hidden +bool IsWindowHidden(void) +{ + return ((CORE.Window.flags & FLAG_WINDOW_HIDDEN) > 0); +} diff --git a/src/rcore_drm.c b/src/rcore_drm.c index 73d7f83ee..bd57fd7bd 100644 --- a/src/rcore_drm.c +++ b/src/rcore_drm.c @@ -1010,4 +1010,10 @@ bool WindowShouldClose(void) { if (CORE.Window.ready) return CORE.Window.shouldClose; else return true; -} \ No newline at end of file +} + +// Check if window is currently hidden +bool IsWindowHidden(void) +{ + return false; +} diff --git a/src/rcore_web.c b/src/rcore_web.c index 7687275ea..5154cdaaa 100644 --- a/src/rcore_web.c +++ b/src/rcore_web.c @@ -1087,4 +1087,10 @@ bool WindowShouldClose(void) // but now emscripten allows sync code to be executed in an interpreted way, using emterpreter! emscripten_sleep(16); return false; -} \ No newline at end of file +} + +// Check if window is currently hidden +bool IsWindowHidden(void) +{ + return false; +}