Index:
[thread]
[date]
[subject]
[author]
From: Andrew Apted <ajapted@netspace.net.au>
To : ggi-develop@eskimo.com
Date: Tue, 14 Jul 1998 13:43:17 +1000
Re: Updated ggi_snes9x
Alexander Larsson writes:
> More problems along the way:
>
> This is from <ggi/ggi.h>
> sp16a16r5g5b5A1 =0x10000000, /* 15 bit BGR 5/5/5 native endian */
> sp16a16r5g5b5A1rev, /* 15 bit BGR 5/5/5 reverse endian */
> sp16a16b5g5r5A1, /* 15 bit RGB 5/5/5 native endian */
> sp16a16b5g5r5A1rev, /* 15 bit RGB 5/5/5 reverse endian */
>
> The enum says rgb, but the comment says BGR. Why is this so?
This is because the letters go from Least significant bits to Most
significant bits, e.g. r5g5b5 is red in 00000000000rrrrr, green in
000000ggggg00000, and blue in 0bbbbb0000000000. It's stupid IMHO, but
that's the way it was defined.
Cheers,
_____________________________________________ ____
\ /
Andrew Apted <andrew@ggi-project.org> \/
Index:
[thread]
[date]
[subject]
[author]