diff options
author | 2014-02-19 14:50:26 +0000 | |
---|---|---|
committer | 2014-02-19 14:50:26 +0000 | |
commit | 5b20b80e723d3a581ac431338e3c3fcb28d27184 (patch) | |
tree | 7d8e9b79bab8c43bdfd809bfbe1ea2c24ad51fdd /src/osd/sdl/blit13.h | |
parent | 8110709f01be9e315f43f4b875a0fe3d0319fbf8 (diff) |
Fix SDL 2.0 build (nw)
Diffstat (limited to 'src/osd/sdl/blit13.h')
-rw-r--r-- | src/osd/sdl/blit13.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/sdl/blit13.h b/src/osd/sdl/blit13.h index 7f6b7aab598..56cebafdb0c 100644 --- a/src/osd/sdl/blit13.h +++ b/src/osd/sdl/blit13.h @@ -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]) |