mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
playch10: Fix order and updates for both screens
This commit is contained in:
parent
dbe25d1be1
commit
f689d76ed5
@ -673,6 +673,12 @@ void playch10_state::playch10(machine_config &config)
|
|||||||
PALETTE(config, "palette", FUNC(playch10_state::playch10_palette), 256);
|
PALETTE(config, "palette", FUNC(playch10_state::playch10_palette), 256);
|
||||||
config.set_default_layout(layout_playch10);
|
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));
|
screen_device &top(SCREEN(config, "top", SCREEN_TYPE_RASTER));
|
||||||
top.set_refresh_hz(60);
|
top.set_refresh_hz(60);
|
||||||
top.set_size(32*8, 262);
|
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.set_screen_update(FUNC(playch10_state::screen_update_playch10_top));
|
||||||
top.screen_vblank().set(FUNC(playch10_state::vblank_irq));
|
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);
|
PPU_2C03B(config, m_ppu, 0);
|
||||||
m_ppu->set_screen("bottom");
|
m_ppu->set_screen("bottom");
|
||||||
m_ppu->set_cpu_tag("cart");
|
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)
|
if (m_pc10_bios != 1)
|
||||||
return screen_update_playch10_single(screen, bitmap, cliprect);
|
return screen_update_playch10_single(screen, bitmap, cliprect);
|
||||||
|
|
||||||
if (!m_pc10_dispmask)
|
/* When the bios is accessing vram, the video circuitry can't access it */
|
||||||
/* render the ppu */
|
if (!m_pc10_sdcs)
|
||||||
m_ppu->render(bitmap, 0, 0, 0, 0, cliprect);
|
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
||||||
else
|
else
|
||||||
bitmap.fill(0, cliprect);
|
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)
|
if (m_pc10_bios != 1)
|
||||||
return screen_update_playch10_single(screen, bitmap, cliprect);
|
return screen_update_playch10_single(screen, bitmap, cliprect);
|
||||||
|
|
||||||
/* When the bios is accessing vram, the video circuitry can't access it */
|
if (!m_pc10_dispmask)
|
||||||
if (!m_pc10_sdcs)
|
/* render the ppu */
|
||||||
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
m_ppu->render(bitmap, 0, 0, 0, 0, cliprect);
|
||||||
else
|
else
|
||||||
bitmap.fill(0, cliprect);
|
bitmap.fill(0, cliprect);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user