From f689d76ed583180273567badcf04f4e959a8225c Mon Sep 17 00:00:00 2001 From: Enik Land Date: Thu, 11 Jul 2019 14:00:24 -0300 Subject: playch10: Fix order and updates for both screens --- src/mame/drivers/playch10.cpp | 12 ++++++------ src/mame/video/playch10.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/mame/drivers/playch10.cpp b/src/mame/drivers/playch10.cpp index 51786fb2abc..f0d17da7fda 100644 --- a/src/mame/drivers/playch10.cpp +++ b/src/mame/drivers/playch10.cpp @@ -673,6 +673,12 @@ void playch10_state::playch10(machine_config &config) PALETTE(config, "palette", FUNC(playch10_state::playch10_palette), 256); config.set_default_layout(layout_playch10); + screen_device &bottom(SCREEN(config, "bottom", SCREEN_TYPE_RASTER)); + bottom.set_refresh_hz(60); + bottom.set_size(32*8, 262); + bottom.set_visarea(0*8, 32*8-1, 0*8, 30*8-1); + bottom.set_screen_update(FUNC(playch10_state::screen_update_playch10_bottom)); + screen_device &top(SCREEN(config, "top", SCREEN_TYPE_RASTER)); top.set_refresh_hz(60); top.set_size(32*8, 262); @@ -680,12 +686,6 @@ void playch10_state::playch10(machine_config &config) top.set_screen_update(FUNC(playch10_state::screen_update_playch10_top)); top.screen_vblank().set(FUNC(playch10_state::vblank_irq)); - screen_device &bottom(SCREEN(config, "bottom", SCREEN_TYPE_RASTER)); - bottom.set_refresh_hz(60); - bottom.set_size(32*8, 262); - bottom.set_visarea(0*8, 32*8-1, 0*8, 30*8-1); - bottom.set_screen_update(FUNC(playch10_state::screen_update_playch10_bottom)); - PPU_2C03B(config, m_ppu, 0); m_ppu->set_screen("bottom"); m_ppu->set_cpu_tag("cart"); diff --git a/src/mame/video/playch10.cpp b/src/mame/video/playch10.cpp index c2e212b45a1..935af106c14 100644 --- a/src/mame/video/playch10.cpp +++ b/src/mame/video/playch10.cpp @@ -127,9 +127,9 @@ uint32_t playch10_state::screen_update_playch10_top(screen_device &screen, bitma if (m_pc10_bios != 1) return screen_update_playch10_single(screen, bitmap, cliprect); - if (!m_pc10_dispmask) - /* render the ppu */ - m_ppu->render(bitmap, 0, 0, 0, 0, cliprect); + /* When the bios is accessing vram, the video circuitry can't access it */ + if (!m_pc10_sdcs) + m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); else bitmap.fill(0, cliprect); @@ -142,9 +142,9 @@ uint32_t playch10_state::screen_update_playch10_bottom(screen_device &screen, bi if (m_pc10_bios != 1) return screen_update_playch10_single(screen, bitmap, cliprect); - /* When the bios is accessing vram, the video circuitry can't access it */ - if (!m_pc10_sdcs) - m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); + if (!m_pc10_dispmask) + /* render the ppu */ + m_ppu->render(bitmap, 0, 0, 0, 0, cliprect); else bitmap.fill(0, cliprect); -- cgit v1.2.3