From bdc99d976880ed550a58402d55d94a827732306d Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 21 Jun 2017 04:03:37 -0400 Subject: [PATCH] - fixed: fillsimplepoly drawer was using an inverted scale, leading to incorrect automap texture display. --- src/swrenderer/r_swcanvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swrenderer/r_swcanvas.cpp b/src/swrenderer/r_swcanvas.cpp index 087d0ca87c..88c0a6b29d 100644 --- a/src/swrenderer/r_swcanvas.cpp +++ b/src/swrenderer/r_swcanvas.cpp @@ -271,8 +271,8 @@ void SWCanvas::FillSimplePoly(DCanvas *canvas, FTexture *tex, FVector2 *points, viewport->RenderTarget->Lock(true); - scalex /= tex->Scale.X; - scaley /= tex->Scale.Y; + scalex = tex->Scale.X / scalex; + scaley = tex->Scale.Y / scaley; // Use the CRT's functions here. cosrot = cos(rotation.Radians());