From 3a0d046f7e7b2873f5bf393b39358fc95361c088 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 23 Apr 2016 21:29:40 -0500 Subject: [PATCH] Fix rendering with SW 2D: modf usage was backwards --- src/v_draw.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index dccbfdc93..c7b62b0a6 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -204,8 +204,7 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms) // There is not enough precision in the drawing routines to keep the full // precision for y0. :( - double dummy; - sprtopscreen = modf(y0, &dummy); + modf(y0, &sprtopscreen); double yscale = parms.destheight / img->GetHeight(); double iyscale = 1 / yscale;