diff options
| author | Ray <[email protected]> | 2022-08-06 19:23:45 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-08-06 19:23:45 +0200 |
| commit | 304c820a8ec6c3345f9b278c3e8f1013da955abb (patch) | |
| tree | a37519da2adfac0a767ca63d2e6fa7a848c62406 /src | |
| parent | 86ac792d9a950a6ce8878d53417627c857516ebd (diff) | |
| parent | 4b2357dc34cced76f5fdb9cd93910b828e980a48 (diff) | |
| download | raylib-304c820a8ec6c3345f9b278c3e8f1013da955abb.tar.gz raylib-304c820a8ec6c3345f9b278c3e8f1013da955abb.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/rcore.c b/src/rcore.c index dafc7dc1..5953b138 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4070,14 +4070,6 @@ static bool InitGraphicsDevice(int width, int height) } } } - -#if defined(PLATFORM_DESKTOP) - // If we are windowed fullscreen, ensures that window does not minimize when focus is lost - if ((CORE.Window.screen.height == CORE.Window.display.height) && (CORE.Window.screen.width == CORE.Window.display.width)) - { - glfwWindowHint(GLFW_AUTO_ICONIFY, 0); - } -#endif TRACELOG(LOG_WARNING, "SYSTEM: Closest fullscreen videomode: %i x %i", CORE.Window.display.width, CORE.Window.display.height); // NOTE: ISSUE: Closest videomode could not match monitor aspect-ratio, for example, @@ -4099,6 +4091,13 @@ static bool InitGraphicsDevice(int width, int height) } else { +#if defined(PLATFORM_DESKTOP) + // If we are windowed fullscreen, ensures that window does not minimize when focus is lost + if ((CORE.Window.screen.height == CORE.Window.display.height) && (CORE.Window.screen.width == CORE.Window.display.width)) + { + glfwWindowHint(GLFW_AUTO_ICONIFY, 0); + } +#endif // No-fullscreen window creation CORE.Window.handle = glfwCreateWindow(CORE.Window.screen.width, CORE.Window.screen.height, (CORE.Window.title != 0)? CORE.Window.title : " ", NULL, NULL); |
