Re: [AD] About Elias' bug |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> I saw that the best_fit_color() function already checks for color
> (63,0,63) and index 0 in some way .. so I guess someone already
> had a similiar problem once but did only partly fix it.
Very partly...
And from what I can understand by reading create_rgb_table(), it looks like
RGB mapping tables never contain index 0. That's a little inconsistent since
best_fit_color() can return 0 when it is passed (63, 0, 63).
I think we should even the two behaviours and get rid of this hack, so that
makecol8() never returns 0. Since the KEEP_TRANS mechanism catches the
source mask color before doing the conversion with makecol(), we won't lose
anything.
--
Eric Botcazou
ebotcazou@xxxxxxxxxx