mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
scn2674: Blank display line by line
This commit is contained in:
parent
f99e295ad7
commit
a561a0ea39
@ -1161,6 +1161,9 @@ TIMER_CALLBACK_MEMBER(scn2674_device::scanline_timer)
|
||||
address = m_display_buffer_first_address;
|
||||
}
|
||||
|
||||
if (!m_display_enabled)
|
||||
std::fill_n(&m_bitmap.pix32(m_linecounter), m_character_per_row * m_hpixels_per_column, rgb_t::black());
|
||||
|
||||
if (m_gfx_enabled || (charrow == (m_scanline_per_char_row - 1)))
|
||||
m_address = address;
|
||||
}
|
||||
@ -1186,10 +1189,7 @@ TIMER_CALLBACK_MEMBER(scn2674_device::vblank_timer)
|
||||
|
||||
uint32_t scn2674_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
if (!m_display_enabled)
|
||||
m_bitmap.fill(rgb_t::black(), cliprect);
|
||||
else
|
||||
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
|
||||
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user