From 6213f51aa7d3586e46e6564c70953752b0f11396 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Wed, 20 Jul 2022 21:21:09 +0300 Subject: [PATCH] gl: background aspect fix are special case --- src/game/renders/opengl/r_render.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/renders/opengl/r_render.pas b/src/game/renders/opengl/r_render.pas index 8504596..5c03ef3 100644 --- a/src/game/renders/opengl/r_render.pas +++ b/src/game/renders/opengl/r_render.pas @@ -451,7 +451,7 @@ implementation if img <> nil then begin img := BackgroundTexture.id; - fw := img.width * 4 div 3; // fix aspect 4:3 + if img.width = img.height then fw := img.width * 4 div 3 else fw := img.width; // fix aspect 4:3 r_Common_CalcAspect(fw, img.height, gScreenWidth, gScreenHeight, false, w, h); r_Draw_Texture(img, gScreenWidth div 2 - w div 2, 0, w, h, false, 255, 255, 255, 255, false); end -- 2.29.2