Re: [AD] A small bugfix to exflame.c

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


On Fri, 2005-04-08 at 21:52 +0300, StApostol wrote:
> While creating the palette for the flames, an overflow causes some
> pixels to have a (slightly) incorrect color. The offending line:
>  palette[c].b = c - 192; <- This causes negative values since in this
> occasion 128 <= c < 192.
> should read:
>  palette[c].b = c - 128;
> 
> I have verified that this produces the correct result.

Thanks, committed it to CVS.

> 
> Now that's a huge update isn't it ;)

Well, it was a bug, and every bug should be fixed. 

-- 
Elias Pschernig





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