Fix rendering with SW 2D: modf usage was backwards

This commit is contained in:
Randy Heit 2016-04-23 21:29:40 -05:00
parent 96a0bee651
commit 3a0d046f7e

View file

@ -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;