mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Merge pull request #5330 from enikland2/playch10_screen_fix
playch10: Fix order and screen_update code for both screens
This commit is contained in:
commit
cc5d4b9305
@ -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");
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user