From 8ef02544a737bb993fff6e25bc4adb1a14862b72 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Thu, 18 Mar 2021 22:29:19 +0000 Subject: [PATCH] Fix camera texture aspect ratio in hardware renderer It wasn't respecting the map's pixel ratio setting. This wouldn't have been very noticeable with the default pixel ratio of 1.2 but it was very obvious with 1.8. --- src/rendering/hwrenderer/hw_entrypoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/hw_entrypoint.cpp b/src/rendering/hwrenderer/hw_entrypoint.cpp index 4803d20834..456f8bb77e 100644 --- a/src/rendering/hwrenderer/hw_entrypoint.cpp +++ b/src/rendering/hwrenderer/hw_entrypoint.cpp @@ -343,7 +343,7 @@ sector_t* RenderView(player_t* player) screen->RenderTextureView(camtex, [=](IntRect& bounds) { FRenderViewpoint texvp; - float ratio = camtex->aspectRatio; + float ratio = camtex->aspectRatio / Level->info->pixelstretch; RenderViewpoint(texvp, camera, &bounds, fov, ratio, ratio, false, false); }); });