Geometry: Revert affine_fixed changes.

Commit 5232361718 introduced changes to the affine_fixed function
which lead to Minecraft Overviewer issue https://github.com/overviewer/Minecraft-Overviewer/issues/1370

This patch reverts the change.
This commit is contained in:
Lubosz Sarnecki 2018-01-07 04:19:59 +01:00
parent dca1247c47
commit 83e3fbbea2

View File

@ -862,10 +862,8 @@ affine_fixed(Imaging imOut, Imaging imIn,
/* use 16.16 fixed point arithmetics */
#define FIX(v) FLOOR((v)*65536.0 + 0.5)
a0 = FIX(a[0]); a1 = FIX(a[1]);
a3 = FIX(a[3]); a4 = FIX(a[4]);
a2 = FIX(a[2] + a[0] * 0.5 + a[1] * 0.5);
a5 = FIX(a[5] + a[3] * 0.5 + a[4] * 0.5);
a0 = FIX(a[0]); a1 = FIX(a[1]); a2 = FIX(a[2]);
a3 = FIX(a[3]); a4 = FIX(a[4]); a5 = FIX(a[5]);
#undef FIX