fix starting in non widescreen mode

This commit is contained in:
Roman Fomin 2023-12-16 13:30:15 +07:00
parent 73f9a43248
commit bec5773d38

View File

@ -1442,11 +1442,15 @@ static void CreateSurfaces(void)
SDL_TEXTUREACCESS_STREAMING,
w, h);
ResetResolution(h);
int oldwidescreen = widescreen;
widescreen = RATIO_MATCH_SCREEN;
ResetResolution(h);
R_InitAnyRes();
ST_InitRes();
widescreen = oldwidescreen;
if (resolution_mode != RES_DRS)
{
ResetResolution(CurrentResolutionMode());