[AD] slightly improved create_light_table()

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


Hello,
This patch makes create_light_table() produce the exact palette for the
255's entry in the table. It did not always to this before because of
the inaccuracy of rgb_maps, and because some palette entry may be
duplicated. It also rounds the pixel values more correctly if the
rgb_map is used, and it's a bit faster (takes 20% less time on my
system).
-- 
Sven Sandberg    svsa1977@xxxxxxxxxx    home.student.uu.se/svsa1977

Attachment: color.c.diff.gz
Description: GNU Zip compressed data



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