Skip to content

Commit

Permalink
Fix Software Slope Rendering for non-1.2 pixel ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 authored and madame-rachelle committed Feb 17, 2023
1 parent 4475240 commit b84bf17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rendering/swrenderer/viewport/r_viewport.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit b84bf17

Please sign in to comment.