summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-29 23:36:34 +0200
committer hap <happppp@users.noreply.github.com>2020-06-29 23:36:34 +0200
commitf43c648f5d354789575ab2fd15684532b11a6483 (patch)
tree850be4362b7c25e0797d2c5c43714f3f5132dbe9
parent26b6ba93cef7c0e8d080d90dbc5cfb435eed1513 (diff)
tilemap: default flags parameter in draw function
-rw-r--r--src/emu/tilemap.h8
-rw-r--r--src/mame/video/bosco.cpp10
-rw-r--r--src/mame/video/galaga.cpp4
3 files changed, 11 insertions, 11 deletions
diff --git a/src/emu/tilemap.h b/src/emu/tilemap.h
index 13293a46823..a897a5fb80b 100644
--- a/src/emu/tilemap.h
+++ b/src/emu/tilemap.h
@@ -487,10 +487,10 @@ public:
void configure_groups(gfx_element &gfx, indirect_pen_t transcolor);
// drawing
- void draw(screen_device &screen, bitmap_ind16 &dest, const rectangle &cliprect, u32 flags, u8 priority = 0, u8 priority_mask = 0xff);
- void draw(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, u32 flags, u8 priority = 0, u8 priority_mask = 0xff);
- void draw_roz(screen_device &screen, bitmap_ind16 &dest, const rectangle &cliprect, u32 startx, u32 starty, int incxx, int incxy, int incyx, int incyy, bool wraparound, u32 flags, u8 priority = 0, u8 priority_mask = 0xff);
- void draw_roz(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, u32 startx, u32 starty, int incxx, int incxy, int incyx, int incyy, bool wraparound, u32 flags, u8 priority = 0, u8 priority_mask = 0xff);
+ void draw(screen_device &screen, bitmap_ind16 &dest, const rectangle &cliprect, u32 flags = TILEMAP_DRAW_ALL_CATEGORIES, u8 priority = 0, u8 priority_mask = 0xff);
+ void draw(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, u32 flags = TILEMAP_DRAW_ALL_CATEGORIES, u8 priority = 0, u8 priority_mask = 0xff);
+ void draw_roz(screen_device &screen, bitmap_ind16 &dest, const rectangle &cliprect, u32 startx, u32 starty, int incxx, int incxy, int incyx, int incyy, bool wraparound, u32 flags = TILEMAP_DRAW_ALL_CATEGORIES, u8 priority = 0, u8 priority_mask = 0xff);
+ void draw_roz(screen_device &screen, bitmap_rgb32 &dest, const rectangle &cliprect, u32 startx, u32 starty, int incxx, int incxy, int incyx, int incyy, bool wraparound, u32 flags = TILEMAP_DRAW_ALL_CATEGORIES, u8 priority = 0, u8 priority_mask = 0xff);
void draw_debug(screen_device &screen, bitmap_rgb32 &dest, u32 scrollx, u32 scrolly, u32 flags = TILEMAP_DRAW_ALL_CATEGORIES);
// mappers
diff --git a/src/mame/video/bosco.cpp b/src/mame/video/bosco.cpp
index 72c3670d2c0..62b366cebf9 100644
--- a/src/mame/video/bosco.cpp
+++ b/src/mame/video/bosco.cpp
@@ -249,14 +249,14 @@ uint32_t bosco_state::screen_update_bosco(screen_device &screen, bitmap_ind16 &b
fg_clip &= cliprect;
bitmap.fill(m_palette->black_pen(), cliprect);
- m_starfield->draw_starfield(bitmap,bg_clip,flip);
+ m_starfield->draw_starfield(bitmap, bg_clip, flip);
- draw_sprites(bitmap,bg_clip,flip);
+ draw_sprites(bitmap, bg_clip, flip);
- m_bg_tilemap->draw(screen, bitmap, bg_clip, 0);
- m_fg_tilemap->draw(screen, bitmap, fg_clip, 0);
+ m_bg_tilemap->draw(screen, bitmap, bg_clip);
+ m_fg_tilemap->draw(screen, bitmap, fg_clip);
- draw_bullets(bitmap,cliprect,flip);
+ draw_bullets(bitmap, cliprect, flip);
/* It looks like H offsets 221-223 are skipped over, moving the radar tilemap
(including the 'bullets' on it) 3 pixels to the left */
diff --git a/src/mame/video/galaga.cpp b/src/mame/video/galaga.cpp
index 799c4fe111f..a6446725c67 100644
--- a/src/mame/video/galaga.cpp
+++ b/src/mame/video/galaga.cpp
@@ -229,9 +229,9 @@ void galaga_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect
uint32_t galaga_state::screen_update_galaga(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
bitmap.fill(m_palette->black_pen(), cliprect);
- m_starfield->draw_starfield(bitmap,cliprect,0);
+ m_starfield->draw_starfield(bitmap,cliprect, 0);
draw_sprites(bitmap,cliprect);
- m_fg_tilemap->draw(screen, bitmap, cliprect, 0,0);
+ m_fg_tilemap->draw(screen, bitmap, cliprect);
return 0;
}