OS_ReadPoint
Tony van der Hoff
tony at mk-net.demon.co.uk
Mon Jan 19 15:45:58 GMT 2004
Christian Ludlam <chris at recoil.org> wrote in message
<2becaf714c.christian at venice.lab>
[snip]
>
> In a 32bpp mode, it's &00BBGGRR. In 16bpp mode, %0BBB BBGG GGGR RRRR. I've
> just realaised that there already is a type for this - os_colour_number,
> which is what ColourTrans_ReturnColourNumber returns.
>
> However, in the bizarre world of a 256 colour mode, this call instead
returns
> a GCOL number and a tint, as the current implementation.
>
> > Whilst I'd be quite happy to add this call, I'm not entirely sure on how
to
> > implement it. Does anyone else have any suggestions?
>
> I'd suggest it probably would be better to add os_read_pointw as you
suggest,
> returning an os_colour_numer. It needn't bother about the tint, which is
> always 0.
>
I've put this on the todo list, but I'm rather reluctant to embody it in a
release version of OSLib without some authoritative documentation.
--
Tony van der Hoff
Buckinghamshire England
More information about the oslib-user
mailing list