27 lines
976 B
Diff
27 lines
976 B
Diff
|
From fad3284bde35899cb24189cba60fae7ca56ce9ee Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= <ricolvs123@gmail.com>
|
||
|
Date: Fri, 17 Feb 2023 16:11:39 -0300
|
||
|
Subject: [PATCH 34/51] Fix Software Slope Rendering for non-1.2 pixel ratios
|
||
|
|
||
|
---
|
||
|
src/rendering/swrenderer/viewport/r_viewport.cpp | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/src/rendering/swrenderer/viewport/r_viewport.cpp b/src/rendering/swrenderer/viewport/r_viewport.cpp
|
||
|
index aa455cf06..63606d467 100644
|
||
|
--- a/src/rendering/swrenderer/viewport/r_viewport.cpp
|
||
|
+++ b/src/rendering/swrenderer/viewport/r_viewport.cpp
|
||
|
@@ -172,6 +172,9 @@ namespace swrenderer
|
||
|
|
||
|
WallTMapScale2 = IYaspectMul / CenterX * 1.2 / ypixelstretch;
|
||
|
|
||
|
+ // [RicardoLuis0] adjust IYaspectMul for map stretch -- fixes slope rendering on maps that define pixelratio
|
||
|
+ IYaspectMul *= 1.2 / ypixelstretch;
|
||
|
+
|
||
|
// thing clipping
|
||
|
fillshort(screenheightarray, viewwidth, (short)viewheight);
|
||
|
|
||
|
--
|
||
|
2.39.3
|
||
|
|