Feature: Choose a sensible window size on a fresh OTTD config file. (#8536)

This commit is contained in:
Michael Lutz
2021-01-14 21:53:06 +01:00
committed by GitHub
parent 711723d738
commit fa60c1f8b9
13 changed files with 83 additions and 14 deletions

View File

@@ -614,6 +614,8 @@ const char *VideoDriver_SDL::Start(const StringList &parm)
}
if (ret_code < 0) return SDL_GetError();
this->UpdateAutoResolution();
GetVideoModes();
if (!CreateMainSurface(_cur_resolution.width, _cur_resolution.height)) {
return SDL_GetError();