From 5edb42b0becbcac350fab82aa3c36bb055fd30f8 Mon Sep 17 00:00:00 2001 From: mamehaze <140764005+mamehaze@users.noreply.github.com> Date: Wed, 29 May 2024 20:55:58 +0100 Subject: nitchibutsu/shettle.cpp - Change shettle palette PROM decode to match wiping (#12418) --- src/mame/nichibutsu/shettle.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mame/nichibutsu/shettle.cpp b/src/mame/nichibutsu/shettle.cpp index 26c38ed1779..5ff04aafba3 100644 --- a/src/mame/nichibutsu/shettle.cpp +++ b/src/mame/nichibutsu/shettle.cpp @@ -121,19 +121,22 @@ void shettle_state::palette_init(palette_device &palette) const { int bit0, bit1, bit2; + // red component bit0 = BIT(color_prom[i], 0); bit1 = BIT(color_prom[i], 1); bit2 = BIT(color_prom[i], 2); - int const g = combine_weights(gweights, bit0, bit1, bit2); + int const r = combine_weights(rweights, bit0, bit1, bit2); + // green component bit0 = BIT(color_prom[i], 3); bit1 = BIT(color_prom[i], 4); - int const b = combine_weights(bweights, bit0, bit1); + bit2 = BIT(color_prom[i], 5); + int const g = combine_weights(gweights, bit0, bit1, bit2); - bit0 = BIT(color_prom[i], 5); - bit1 = BIT(color_prom[i], 6); - bit2 = BIT(color_prom[i], 7); - int const r = combine_weights(rweights, bit0, bit1, bit2); + // blue component + bit0 = BIT(color_prom[i], 6); + bit1 = BIT(color_prom[i], 7); + int const b = combine_weights(bweights, bit0, bit1); palette.set_indirect_color(i, rgb_t(r, g, b)); } -- cgit v1.2.3