mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Erase bitmap_rgb32::erase (nw)
This commit is contained in:
parent
7d41a1f619
commit
b83078eb46
@ -414,7 +414,7 @@ uint32_t cdp1864_device::screen_update(screen_device &screen, bitmap_rgb32 &bitm
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -247,7 +247,7 @@ uint32_t cdp1861_device::screen_update(screen_device &screen, bitmap_rgb32 &bitm
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ WRITE_LINE_MEMBER( crt9021_t::vsync_w )
|
||||
|
||||
uint32_t crt9021_t::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
m_bitmap.erase(cliprect);
|
||||
m_bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -647,7 +647,7 @@ uint32_t i8275_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap
|
||||
{
|
||||
if (!(m_status & ST_VE))
|
||||
{
|
||||
m_bitmap.erase(cliprect);
|
||||
m_bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
|
||||
|
@ -776,7 +776,7 @@ void scn2674_device::device_timer(emu_timer &timer, device_timer_id id, int para
|
||||
uint32_t scn2674_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
if (!m_display_enabled)
|
||||
m_bitmap.erase(cliprect);
|
||||
m_bitmap.fill(rgb_t::black(), cliprect);
|
||||
else
|
||||
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
|
||||
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
@ -388,9 +388,6 @@ public:
|
||||
|
||||
// getters
|
||||
bitmap_format format() const { return k_bitmap_format; }
|
||||
|
||||
// operations
|
||||
void erase(const rectangle &rect) { fill(rgb_t::black(), rect); }
|
||||
};
|
||||
|
||||
// BITMAP_FORMAT_ARGB32 bitmaps
|
||||
|
@ -284,7 +284,7 @@ uint32_t apricot_state::screen_update_apricot(screen_device &screen, bitmap_rgb3
|
||||
if (!m_display_on)
|
||||
m_crtc->screen_update(screen, bitmap, cliprect);
|
||||
else
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
//required_device<generic_terminal_device> m_terminal;
|
||||
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
DECLARE_READ8_MEMBER(la120_KBD_r);
|
||||
|
@ -515,7 +515,7 @@ uint32_t hyperscan_state::spg290_screen_update(screen_device &screen, bitmap_rgb
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -183,7 +183,7 @@ uint32_t isa8_cga_tetriskr_device::screen_update(screen_device &screen, bitmap_r
|
||||
|
||||
//popmessage("%04x",m_start_offs);
|
||||
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
for(y=0;y<200/8;y++)
|
||||
{
|
||||
|
@ -1399,7 +1399,7 @@ uint32_t pet_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, c
|
||||
|
||||
MC6845_BEGIN_UPDATE( pet_state::pet_begin_update )
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
MC6845_UPDATE_ROW( pet80_state::pet80_update_row )
|
||||
|
@ -437,7 +437,7 @@ uint32_t trs80m2_state::screen_update(screen_device &screen, bitmap_rgb32 &bitma
|
||||
{
|
||||
if (m_blnkvid)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1452,7 +1452,7 @@ uint32_t sms_state::screen_update_sms1(screen_device &screen, bitmap_rgb32 &bitm
|
||||
}
|
||||
}
|
||||
}
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -1255,7 +1255,7 @@ uint32_t abc1600_mover_device::screen_update(screen_device &screen, bitmap_rgb32
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -126,7 +126,7 @@ void abc800_state::video_start()
|
||||
uint32_t abc800c_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// clear screen
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
// draw text
|
||||
if (!BIT(m_fgctl, 7))
|
||||
@ -274,7 +274,7 @@ MC6845_UPDATE_ROW( abc800m_state::abc800m_update_row )
|
||||
uint32_t abc800m_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// clear screen
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
// draw HR graphics
|
||||
hr_update(bitmap, cliprect);
|
||||
|
@ -451,7 +451,7 @@ void abc806_state::video_start()
|
||||
uint32_t abc806_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// clear screen
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
if (!m_txoff)
|
||||
{
|
||||
|
@ -133,7 +133,7 @@ uint32_t capbowl_state::screen_update(screen_device &screen, bitmap_rgb32 &bitma
|
||||
/* if we're blanked, just fill with black */
|
||||
if (m_tms34061->m_display.blanked)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -920,7 +920,7 @@ void galaxian_state::stars_draw_row(bitmap_rgb32 &bitmap, int maxx, int y, uint3
|
||||
void galaxian_state::galaxian_draw_background(bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
/* erase the background to black first */
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
/* update the star origin to the current frame */
|
||||
stars_update_origin();
|
||||
|
@ -248,7 +248,7 @@ uint32_t hyhoo_state::screen_update_hyhoo(screen_device &screen, bitmap_rgb32 &b
|
||||
if (m_dispflag)
|
||||
copybitmap(bitmap, m_tmpbitmap, m_flipscreen, m_flipscreen, 0, 0, cliprect);
|
||||
else
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -586,7 +586,7 @@ uint32_t itech8_state::screen_update_2layer(screen_device &screen, bitmap_rgb32
|
||||
/* if we're blanked, just fill with black */
|
||||
if (m_tms34061->m_display.blanked)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -621,7 +621,7 @@ uint32_t itech8_state::screen_update_grmatch(screen_device &screen, bitmap_rgb32
|
||||
/* if we're blanked, just fill with black */
|
||||
if (m_tms34061->m_display.blanked)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -669,7 +669,7 @@ uint32_t itech8_state::screen_update_2page(screen_device &screen, bitmap_rgb32 &
|
||||
/* if we're blanked, just fill with black */
|
||||
if (m_tms34061->m_display.blanked)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -700,7 +700,7 @@ uint32_t itech8_state::screen_update_2page_large(screen_device &screen, bitmap_r
|
||||
/* if we're blanked, just fill with black */
|
||||
if (m_tms34061->m_display.blanked)
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -327,7 +327,7 @@ uint32_t jedi_state::screen_update_jedi(screen_device &screen, bitmap_rgb32 &bit
|
||||
{
|
||||
/* if no video, clear it all to black */
|
||||
if (*m_video_off & 0x01)
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
else
|
||||
{
|
||||
/* draw the background/text layers, followed by the sprites
|
||||
|
@ -303,7 +303,7 @@ uint32_t liberatr_state::screen_update(screen_device &screen, bitmap_rgb32 &bitm
|
||||
pen_t pens[NUM_PENS];
|
||||
get_pens(pens);
|
||||
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
draw_planet(bitmap, pens);
|
||||
draw_bitmap(bitmap, pens);
|
||||
|
||||
|
@ -24,7 +24,7 @@ uint32_t malzak_state::screen_update_malzak(screen_device &screen, bitmap_rgb32
|
||||
int sx, sy;
|
||||
int x,y;
|
||||
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
|
||||
m_trom->screen_update(screen, bitmap, cliprect);
|
||||
|
||||
|
@ -151,7 +151,7 @@ uint32_t newbrain_state::screen_update(screen_device &screen, bitmap_rgb32 &bitm
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -580,7 +580,7 @@ uint32_t pc1512_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -327,7 +327,7 @@ uint32_t zx8301_device::screen_update(screen_device &screen, bitmap_rgb32 &bitma
|
||||
}
|
||||
else
|
||||
{
|
||||
bitmap.erase(cliprect);
|
||||
bitmap.fill(rgb_t::black(), cliprect);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user