Fixed typo

This commit is contained in:
Andrew Murray 2020-01-09 20:00:32 +11:00
parent ef4a0b2f4c
commit d24e4f44c1

View File

@ -42,7 +42,7 @@
#define INK8(ink) (*(UINT8*)ink)
/*
* Rounds around zero (up=away from zero, down=torwards zero)
* Rounds around zero (up=away from zero, down=towards zero)
* This guarantees that ROUND_UP|DOWN(f) == -ROUND_UP|DOWN(-f)
*/
#define ROUND_UP(f) ((int) ((f) >= 0.0 ? floor((f) + 0.5F) : -floor(fabs(f) + 0.5F)))