From 8b56e83362b8e8eed893eab596ef7cb440c94afd Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 6 May 2019 05:59:33 -0400 Subject: bingor.cpp: Fix palette size; restore palette RAM to prevent crashing (nw) Here the palette RAM really is physically part of the same RAM used for video data. This is controlled by an unemulated VDP. --- src/mame/drivers/bingor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/bingor.cpp b/src/mame/drivers/bingor.cpp index f015d0ba80f..1d2250d21ca 100644 --- a/src/mame/drivers/bingor.cpp +++ b/src/mame/drivers/bingor.cpp @@ -559,6 +559,7 @@ private: void bingor_state::video_start() { + m_palette->basemem().set(&m_blit_ram[0x300/2], 0x10 * sizeof(uint16_t), 16, ENDIANNESS_LITTLE, 2); } uint32_t bingor_state::screen_update_bingor(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) @@ -713,7 +714,7 @@ void bingor_state::bingor(machine_config &config) screen.set_visarea(0, 400-1, 0, 300-1); screen.set_screen_update(FUNC(bingor_state::screen_update_bingor)); - PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x100); + PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x10); SPEAKER(config, "mono").front_center(); SAA1099(config, "saa", 6000000).add_route(ALL_OUTPUTS, "mono", 0.50); @@ -783,7 +784,7 @@ void bingor_state::vip2000(machine_config &config) screen.set_visarea(0, 400-1, 0, 300-1); screen.set_screen_update(FUNC(bingor_state::screen_update_bingor)); - PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x100); + PALETTE(config, m_palette).set_format(palette_device::RGBI_4444, 0x10); SPEAKER(config, "mono").front_center(); -- cgit v1.2.3