Re: [AD] Windowed drivers color conversion

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


On 01 May 2001, Angelo Mottola <a.mottola@xxxxxxxxxx> wrote:
> 
> I don't think it'd be that hard to add 15bit support at this point.
> Truecolor to palette would require much more work, and I'm a bit lost in it
> currently, so maybe this is a job for Michael or Peter, who coded the X and
> BeOS drivers (that support also this kind of conversion).

The truecolour to palette conversion is based on a limited lookup
table (0x1000 entries).  To index the table, each RGB component is
reduced to 4 bits of precision (2^(3*4) == 0x1000).

-- 
WERXILATION (wurks ul AY shun), n.  The property of some screen doors to
start to slam shut only to catch themselves at the last moment and "float"
to a gentle close.  -- Rich Hall, "Sniglets"



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