From: DeaDDooMER Date: Wed, 20 Jul 2022 18:21:09 +0000 (+0300) Subject: gl: background aspect fix are special case X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=6213f51aa7d3586e46e6564c70953752b0f11396;p=d2df-sdl.git gl: background aspect fix are special case --- 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