summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/bt45x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/bt45x.cpp')
-rw-r--r--src/devices/video/bt45x.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/video/bt45x.cpp b/src/devices/video/bt45x.cpp
index e3ef49246df..929631baa12 100644
--- a/src/devices/video/bt45x.cpp
+++ b/src/devices/video/bt45x.cpp
@@ -269,7 +269,10 @@ void bt45x_rgb_device_base::palette_w(u8 data)
{
LOGMASKED(LOG_WRITES, "%s: palette_w 0x%02x\n", machine().describe_context(), data);
- m_color_ram[m_address][m_address_rgb] = data & get_mask();
+ if (m_palette_colors == 16)
+ m_color_ram[m_address][m_address_rgb] = ((data & get_mask()) << 4) | 0xf;
+ else
+ m_color_ram[m_address][m_address_rgb] = data & get_mask();
// update the mame palette to match the device
if (m_address_rgb == 2)