banish some unruly epsilons

This commit is contained in:
zeromus 2020-04-28 18:53:22 -04:00
parent 9c6834db17
commit b1d491d91f
1 changed files with 9 additions and 0 deletions

View File

@ -306,6 +306,15 @@ namespace BizHawk.Client.EmuHawk.Filters
bot.Translate(-fxmin, -fymin);
matTop = top.Top;
matBot = bot.Top;
//do some more rounding
for (int r = 0; r < 4; r++)
for (int c = 0; c < 4; c++)
{
if (Math.Abs(matTop[r, c]) < 0.0000001f) matTop[r, c] = 0;
if (Math.Abs(matBot[r, c]) < 0.0000001f) matBot[r, c] = 0;
}
matTopInvert = matTop.Inverted();
matBotInvert = matBot.Inverted();