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:
parent
5ac2567adc
commit
779131d396
1 changed files with 7 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue