From bec5773d38006d9c2decfcb2f1cf33b75b57cbe7 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sat, 16 Dec 2023 13:30:15 +0700 Subject: [PATCH] fix starting in non widescreen mode --- src/i_video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/i_video.c b/src/i_video.c index e087e2cb..67ded4f2 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -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());