diff --git a/src/v_draw.cpp b/src/v_draw.cpp index e590df524..f53e7cd31 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)