Skip to content

Commit

Permalink
Simplify calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
schellingb committed Oct 17, 2024
1 parent 1036772 commit 87d20cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dosbox_pure_libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ void GFX_EndUpdate(const Bit16u *changedLines)
else if (!dblh) for (; src != srcEnd; trg -= 2) trg[0] = trg[1] = *(--src);
else for (; src != srcEnd; trg -= 2) trg[0] = trg[1] = trg[pitch] = trg[pitch+1] = *(--src);
}
buf.ratio = ((float)render.src.width * ((float)render.src.dblw+1.f)) / ((float)render.src.height * ((float)render.src.dblh+1.0f) * (float)render.src.ratio);
buf.ratio = (srcw << dblw) / ((srch << dblh) * (float)render.src.ratio);
}
else
{
Expand Down

0 comments on commit 87d20cc

Please sign in to comment.