mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 15:14:45 +03:00
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:
parent
dca1247c47
commit
83e3fbbea2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user