Fix Software Slope Rendering for non-1.2 pixel ratios

This commit is contained in:
Ricardo Luís Vaz Silva 2023-02-17 16:11:39 -03:00 committed by Rachael Alexanderson
parent 4475240da8
commit b84bf176e1

View file

@ -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);