Re: [AD] Bug with transparent ellipses |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Bug with transparent ellipses
- From: Elias Pschernig <elias@xxxxxxxxxx>
- Date: Mon, 04 Sep 2006 11:49:47 +0200
On Sun, 2006-09-03 at 22:24 -0400, Jon Rafkind wrote:
> >
> Attached patch does this.
We should handle rgb_map in a separate patch I think, since there the
fix must look different. See the makecol8 code, which would break with
your patch:
int makecol8(int r, int g, int b)
{
if (rgb_map)
return rgb_map->data[r>>3][g>>3][b>>3];
else
return bestfit_color(_current_palette, r>>2, g>>2, b>>2);
}
--
Elias Pschernig