From 70e18179aa6ee62dfb486aa26563f67f97b07c52 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 22:28:25 +0100 Subject: [PATCH] Place BUILD_PIXEL_RGB565 macro outside --- src/drivers/libretro/libretro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/libretro/libretro.c b/src/drivers/libretro/libretro.c index 7ed205c..9940580 100644 --- a/src/drivers/libretro/libretro.c +++ b/src/drivers/libretro/libretro.c @@ -83,6 +83,8 @@ int FCEUD_SendData(void *data, uint32 len) return 1; } +#define BUILD_PIXEL_RGB565(R,G,B) (((int) ((R)&0x1f) << RED_SHIFT) | ((int) ((G)&0x3f) << GREEN_SHIFT) | (int) ((B) & 0x1f)) + #if defined (PSP) #define RED_SHIFT 0 #define GREEN_SHIFT 5 @@ -100,7 +102,6 @@ int FCEUD_SendData(void *data, uint32 len) #define RED_MASK 0xF800 #define GREEN_MASK 0x7e0 #define BLUE_MASK 0x1f -#define BUILD_PIXEL_RGB565(R,G,B) (((int) ((R)&0x1f) << RED_SHIFT) | ((int) ((G)&0x3f) << GREEN_SHIFT) | (int) ((B) & 0x1f)) #else #define RED_SHIFT 10 #define GREEN_SHIFT 5