[AD] Improved create_trans_table()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hello,
The attached patch makes all divisions in create_trans_table() be
rounded rather than truncated. It has the effect that, e.g., blending
white with white does not any more give gray. On my computer it also
takes about 65% of the time that the old routine took, due to using
int instead of char for calculations.

--
Sven Sandberg   svsa1977@xxxxxxxxxx   home.student.uu.se/svsa1977

Attachment: create_trans_table.diff.gz
Description: application/gzip



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/