Fix SDL 2.0 build (nw)

This commit is contained in:
R. Belmont 2014-02-19 14:50:26 +00:00
parent 8110709f01
commit 5b20b80e72

View file

@ -53,9 +53,9 @@ INLINE UINT32 pixel_ycc_to_rgb_pal(UINT16 *pixel, const rgb_t *palette)
#define OP_RGB32_ARGB32(_src) ((_src) | 0xff000000)
#define OP_RGB32PAL_ARGB32(_src) \
(texsource->palette[0x200 + _src.r()] | \
texsource->palette[0x100 + _src.g()] | \
texsource->palette[_src.b()] | 0xff000000)
(texsource->palette[0x200 + (((_src) >> 16) & 0xff) ] | \
texsource->palette[0x100 + (((_src) >> 8) & 0xff) ] | \
texsource->palette[((_src) & 0xff) ] | 0xff000000)
#define OP_PAL16_ARGB32(_src) (0xff000000 | texsource->palette[_src])