From 99031cd4771f380bb4cd560d984424cf2b638c3e Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 26 Jul 2026 17:38:51 +1200 Subject: [PATCH] Fix -nosplash --- src/SDL/MyOpenGLView.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/SDL/MyOpenGLView.m b/src/SDL/MyOpenGLView.m index 0b4f3e8d2..8315eca2e 100644 --- a/src/SDL/MyOpenGLView.m +++ b/src/SDL/MyOpenGLView.m @@ -452,13 +452,12 @@ - (id) init #if OOLITE_WINDOWS ShowWindow(windowHandle,SW_SHOWMINIMIZED); updateContext = !showSplashScreen; -#elif OOLITE_LINUX +#endif if (!showSplashScreen) { // blank the surface / go to fullscreen [self initialiseGLWithSize: firstScreen]; } -#endif [self autoShowMouse]; @@ -500,12 +499,11 @@ - (void) endSplashScreen wasFullScreen = !fullScreen; updateContext = YES; - ShowWindow(windowHandle,SW_RESTORE); - [self initialiseGLWithSize: firstScreen]; +#endif // OOLITE_WINDOWS -#else - if (!showSplashScreen) return; + if (!showSplashScreen) return; +#if OOLITE_LINUX SDL_HideWindow(window); SDL_SetWindowSize(window, firstScreen.width, firstScreen.height); SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); @@ -528,7 +526,7 @@ - (void) endSplashScreen */ } -#endif // OOLITE_WINDOWS +#endif // OOLITE_LINUX [self updateScreen]; [self autoShowMouse];