Skip to content
Permalink
Browse files

- fixed comparison

  • Loading branch information
coelckers committed Mar 10, 2020
1 parent 08a3f2d commit c2193f16592cb3965643977e72386b12544cacde
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rendering/2d/v_draw.cpp
@@ -381,7 +381,7 @@ bool DFrameBuffer::SetTextureParms(DrawParms *parms, FTexture *img, double xx, d
double srcheight = img->GetDisplayHeightDouble();
aspect = srcwidth / srcheight;
parms->x = parms->y = 0;
if (!gameinfo.fullscreenautoaspect || (srcwidth == 320 && srcheight == 200) || (srcwidth == 640 && srcheight == 200) || aspect - 1.33 < 0.01 /* deliberately allow a large margin for error */)
if (!gameinfo.fullscreenautoaspect || (srcwidth == 320 && srcheight == 200) || (srcwidth == 640 && srcheight == 200) || fabs(aspect - 1.333) < 0.01 /* deliberately allow a large margin for error */)
{
// 4:3 should use the existing code as-is.
parms->keepratio = false; // This must be off in any case.

0 comments on commit c2193f1

Please sign in to comment.
You can’t perform that action at this time.