Feature: Choose a sensible window size on a fresh OTTD config file. (#8536)
This commit is contained in:
@@ -135,6 +135,8 @@ static FVideoDriver_Dedicated iFVideoDriver_Dedicated;
|
||||
|
||||
const char *VideoDriver_Dedicated::Start(const StringList &parm)
|
||||
{
|
||||
this->UpdateAutoResolution();
|
||||
|
||||
int bpp = BlitterFactory::GetCurrentBlitter()->GetScreenDepth();
|
||||
_dedicated_video_mem = (bpp == 0) ? nullptr : MallocT<byte>(_cur_resolution.width * _cur_resolution.height * (bpp / 8));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user