From 779131d3964db787327aeaaa34bd239d48d58b13 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sat, 21 Mar 2020 15:57:42 +0100 Subject: [PATCH] Skip splash screen if resolution is not large enough It's the easiest way to prevent problems when user wants to play the game using fullscreen while explicitly setting tiny resolution for a specific game (e.g. 320x200). --- src/gui/sdlmain.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 48f3c4b5..35492186 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -1985,9 +1985,13 @@ static void GUI_StartUp(Section * sec) { SDL_SetWindowTitle(sdl.window, "DOSBox"); SetIcon(); - GFX_Start(); - DisplaySplash(1000); - GFX_Stop(); + const bool tiny_fullresolution = splash_image.width > sdl.desktop.full.width || + splash_image.height > sdl.desktop.full.height; + if (!(sdl.desktop.fullscreen && tiny_fullresolution)) { + GFX_Start(); + DisplaySplash(1000); + GFX_Stop(); + } // Apply the user's mouse settings Section_prop* s = section->Get_multival("capture_mouse")->GetSection();