common: small fix for 32 bit color
This commit is contained in:
parent
5d49553919
commit
d9b87e734b
@ -72,7 +72,7 @@
|
|||||||
(bpp==8?COLOR8(HRED(c),HGREEN(c),HBLUE(c)): \
|
(bpp==8?COLOR8(HRED(c),HGREEN(c),HBLUE(c)): \
|
||||||
(bpp==15?COLOR15(HRED(c),HGREEN(c),HBLUE(c)): \
|
(bpp==15?COLOR15(HRED(c),HGREEN(c),HBLUE(c)): \
|
||||||
(bpp==16?COLOR16(HRED(c),HGREEN(c),HBLUE(c)): \
|
(bpp==16?COLOR16(HRED(c),HGREEN(c),HBLUE(c)): \
|
||||||
(bpp==24?COLOR24BGR(HRED(c),HGREEN(c),HBLUE(c)):c) \
|
(bpp>=24?COLOR24BGR(HRED(c),HGREEN(c),HBLUE(c)):c) \
|
||||||
) \
|
) \
|
||||||
) \
|
) \
|
||||||
) \
|
) \
|
||||||
@ -101,4 +101,10 @@
|
|||||||
/* use crc for bitmap cache lookups */
|
/* use crc for bitmap cache lookups */
|
||||||
#define USE_CRC
|
#define USE_CRC
|
||||||
|
|
||||||
|
#define XR_RGB2BGR(a_ulColor) \
|
||||||
|
(a_ulColor & 0xFF000000) | \
|
||||||
|
((a_ulColor & 0x00FF0000) >> 16) | \
|
||||||
|
(a_ulColor & 0x0000FF00) | \
|
||||||
|
((a_ulColor & 0x000000FF) << 16)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user