From f1a672254d8f2edb97dcc4185f9f6033fb2f05cc Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 10 Nov 2009 03:40:54 +0000 Subject: [PATCH] - Fixed: Do not use scaled texture width when calculating xiscale. SVN r1968 (trunk) --- src/v_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index e590df5240..f53e7cd314 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -199,7 +199,7 @@ void STACK_ARGS DCanvas::DrawTextureV(FTexture *img, double x, double y, uint32 dc_iscale = DivScale32(1, spryscale); dc_texturemid = FixedMul(-sprtopscreen, dc_iscale) + FixedMul(centeryfrac-FRACUNIT, dc_iscale); fixed_t frac = 0; - double xiscale = parms.texwidth / parms.destwidth; + double xiscale = img->GetWidth() / parms.destwidth; double x2 = x0 + parms.destwidth; if (bottomclipper[0] != parms.dclip)