Merge pull request #5330 from enikland2/playch10_screen_fix

playch10: Fix order and screen_update code for both screens
This commit is contained in:
R. Belmont 2019-07-11 17:29:59 -04:00 committed by GitHub
commit cc5d4b9305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -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");

View File

@ -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);