From 71cd973dbb2584440a4700aa690770d8e338965a Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Tue, 21 Feb 2012 19:56:18 +0000 Subject: [PATCH] CPS Palette endian fix from lantus --- src/burn/drv/capcom/cps_pal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/burn/drv/capcom/cps_pal.cpp b/src/burn/drv/capcom/cps_pal.cpp index 54e95432b..03c2c2e64 100644 --- a/src/burn/drv/capcom/cps_pal.cpp +++ b/src/burn/drv/capcom/cps_pal.cpp @@ -51,7 +51,7 @@ INT32 CpsPalUpdate(UINT8* pNewPal) for (INT32 nPage = 0; nPage < 6; nPage++) { if (BIT(nCtrl, nPage)) { for (INT32 Offset = 0; Offset < 0x200; ++Offset) { - INT32 Palette = *(PaletteRAM++); + INT32 Palette = BURN_ENDIAN_SWAP_INT16(*(PaletteRAM++)); INT32 r, g, b, Bright; Bright = 0x0f + ((Palette >> 12) << 1);