Move IsWindowHidden out of rcore
This commit is contained in:
parent
2125da5926
commit
c68a189af4
|
|
@ -431,15 +431,6 @@ bool IsWindowFullscreen(void)
|
||||||
return CORE.Window.fullscreen;
|
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
|
// Check if window has been minimized
|
||||||
bool IsWindowMinimized(void)
|
bool IsWindowMinimized(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1292,4 +1292,10 @@ bool WindowShouldClose(void)
|
||||||
{
|
{
|
||||||
if (CORE.Window.ready) return CORE.Window.shouldClose;
|
if (CORE.Window.ready) return CORE.Window.shouldClose;
|
||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if window is currently hidden
|
||||||
|
bool IsWindowHidden(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -520,4 +520,10 @@ bool WindowShouldClose(void)
|
||||||
return CORE.Window.shouldClose;
|
return CORE.Window.shouldClose;
|
||||||
}
|
}
|
||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if window is currently hidden
|
||||||
|
bool IsWindowHidden(void)
|
||||||
|
{
|
||||||
|
return ((CORE.Window.flags & FLAG_WINDOW_HIDDEN) > 0);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1010,4 +1010,10 @@ bool WindowShouldClose(void)
|
||||||
{
|
{
|
||||||
if (CORE.Window.ready) return CORE.Window.shouldClose;
|
if (CORE.Window.ready) return CORE.Window.shouldClose;
|
||||||
else return true;
|
else return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if window is currently hidden
|
||||||
|
bool IsWindowHidden(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1087,4 +1087,10 @@ bool WindowShouldClose(void)
|
||||||
// but now emscripten allows sync code to be executed in an interpreted way, using emterpreter!
|
// but now emscripten allows sync code to be executed in an interpreted way, using emterpreter!
|
||||||
emscripten_sleep(16);
|
emscripten_sleep(16);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if window is currently hidden
|
||||||
|
bool IsWindowHidden(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user