summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/texsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/texsrc.h')
-rw-r--r--src/osd/sdl/texsrc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/sdl/texsrc.h b/src/osd/sdl/texsrc.h
index 7e31ea79a21..6f9a7573ef6 100644
--- a/src/osd/sdl/texsrc.h
+++ b/src/osd/sdl/texsrc.h
@@ -41,9 +41,9 @@
#define DEST_NAME(name) name ## _32bpp
#define TEXSRC_TYPE UINT32
#define TEXSRC_TO_DEST(src) \
- (texsource->palette[0x200 + RGB_RED(src)] | \
- texsource->palette[0x100 + RGB_GREEN(src)] | \
- texsource->palette[RGB_BLUE(src)] | 0xff000000)
+ (texsource->palette[0x200 + src.r()] | \
+ texsource->palette[0x100 + src.g()] | \
+ texsource->palette[src.b()] | 0xff000000)
#define FUNC_NAME(name) name ## _rgb32_paletted
#elif SDL_TEXFORMAT == SDL_TEXFORMAT_PALETTE16
#define DEST_TYPE UINT32