Feature: Choose a sensible window size on a fresh OTTD config file. (#8536)
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user