mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-26 23:24:45 +03:00
Merge 83e3fbbea2
into 6372a07be2
This commit is contained in:
commit
15c60b7007
|
@ -862,10 +862,8 @@ affine_fixed(Imaging imOut, Imaging imIn,
|
||||||
/* use 16.16 fixed point arithmetics */
|
/* use 16.16 fixed point arithmetics */
|
||||||
#define FIX(v) FLOOR((v)*65536.0 + 0.5)
|
#define FIX(v) FLOOR((v)*65536.0 + 0.5)
|
||||||
|
|
||||||
a0 = FIX(a[0]); a1 = FIX(a[1]);
|
a0 = FIX(a[0]); a1 = FIX(a[1]); a2 = FIX(a[2]);
|
||||||
a3 = FIX(a[3]); a4 = FIX(a[4]);
|
a3 = FIX(a[3]); a4 = FIX(a[4]); a5 = FIX(a[5]);
|
||||||
a2 = FIX(a[2] + a[0] * 0.5 + a[1] * 0.5);
|
|
||||||
a5 = FIX(a[5] + a[3] * 0.5 + a[4] * 0.5);
|
|
||||||
|
|
||||||
#undef FIX
|
#undef FIX
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user