From 6b8027c3aa644ee32f2a535840a5de024eaa0647 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 5 Feb 2017 18:37:35 +0900 Subject: changed LCD color --- fmdsp/fmdsp_sprites.h | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'fmdsp/fmdsp_sprites.h') diff --git a/fmdsp/fmdsp_sprites.h b/fmdsp/fmdsp_sprites.h index ded3591..9033f6d 100644 --- a/fmdsp/fmdsp_sprites.h +++ b/fmdsp/fmdsp_sprites.h @@ -41,17 +41,22 @@ enum { PALETTE_NUM = 10 }; -#define LCDWR 181 -#define LCDWG 192 -#define LCDWB 12 -#define LCDBR 70 -#define LCDBG 124 -#define LCDBB 108 +#define LCDWR 172 +#define LCDWG 239 +#define LCDWB 7 +#define LCDBR 12 +#define LCDBG 91 +#define LCDBB 0 #define LCD(C) \ (LCDWR*(C)+LCDBR*(255-C))/256, \ (LCDWG*(C)+LCDBG*(255-C))/256, \ (LCDWB*(C)+LCDBB*(255-C))/256 +#define LCDB(C) \ + (LCDBR*(C)+LCDWR*(255-C))/256, \ + (LCDBG*(C)+LCDWG*(255-C))/256, \ + (LCDBB*(C)+LCDWB*(255-C))/256 + static const uint8_t s_palettes[PALETTE_NUM][FMDSP_PALETTE_COLORS*3] = { { 0, 0, 0, @@ -142,15 +147,15 @@ static const uint8_t s_palettes[PALETTE_NUM][FMDSP_PALETTE_COLORS*3] = { 0, 170, 255, }, { - LCD(255), - LCD(72), - LCD(0), - LCD(182), - LCD(0), - LCD(145), - LCD(218), - LCD(109), - LCD(218), + LCDB(255), + LCDB(72), + LCDB(0), + LCDB(182), + LCDB(0), + LCDB(145), + LCDB(218), + LCDB(109), + LCDB(218), }, { LCD(255), -- cgit v1.2.3