Re: [AD] TGA palette patch

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


Peter Wang <tjaden@xxxxxxxxxx> writes:

> +      switch (palette_entry_size) {

...

> +	 case 24:
> +	 case 32:
> +	    pal[i].b = pack_getc(f);
> +	    pal[i].g = pack_getc(f);
> +	    pal[i].r = pack_getc(f);

Just to clarify: do these values contain 6bit for each color
component, or do they contain 8bit?  In the latter case, it might be
necessary to convert data to 6bit, or palette data should be loaded
into image_palette array, not to pal directly.

-- 
Michael Bukin



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