1
0
Fork 0

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).
This commit is contained in:
Patryk Obara 2020-03-21 15:57:42 +01:00 committed by Patryk Obara
parent 5ac2567adc
commit 779131d396

View file

@ -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();