diff options
Diffstat (limited to 'src/mame/video/galaxold.cpp')
-rw-r--r-- | src/mame/video/galaxold.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/src/mame/video/galaxold.cpp b/src/mame/video/galaxold.cpp index 29b92a463e0..b8787b288c5 100644 --- a/src/mame/video/galaxold.cpp +++ b/src/mame/video/galaxold.cpp @@ -425,7 +425,7 @@ void galaxold_state::video_start_common() state_save_register(); } -void galaxold_state::video_start_galaxold_plain() +VIDEO_START_MEMBER(galaxold_state,galaxold_plain) { video_start_common(); m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32); @@ -436,18 +436,18 @@ void galaxold_state::video_start_galaxold_plain() m_color_mask = (m_gfxdecode->gfx(0)->granularity() == 4) ? 7 : 3; } -void galaxold_state::video_start_galaxold() +VIDEO_START_MEMBER(galaxold_state,galaxold) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_draw_stars = &galaxold_state::galaxold_draw_stars; m_draw_bullets = &galaxold_state::galaxold_draw_bullets; } -void galaxold_state::video_start_scrambold() +VIDEO_START_MEMBER(galaxold_state,scrambold) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); /* FIXME: This most probably needs to be adjusted * again when RAW video params are added to scramble @@ -461,57 +461,57 @@ void galaxold_state::video_start_scrambold() m_draw_background = &galaxold_state::scrambold_draw_background; } -void galaxold_state::video_start_newsin7() +VIDEO_START_MEMBER(galaxold_state, newsin7) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_leftclip = 0; } -void galaxold_state::video_start_darkplnt() +VIDEO_START_MEMBER(galaxold_state,darkplnt) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_bg_tilemap->set_scrolldx(0, 0); m_draw_bullets = &galaxold_state::darkplnt_draw_bullets; } -void galaxold_state::video_start_rescue() +VIDEO_START_MEMBER(galaxold_state,rescue) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_draw_stars = &galaxold_state::rescue_draw_stars; m_draw_background = &galaxold_state::rescue_draw_background; } -void galaxold_state::video_start_minefld() +VIDEO_START_MEMBER(galaxold_state,minefld) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_draw_stars = &galaxold_state::rescue_draw_stars; m_draw_background = &galaxold_state::minefld_draw_background; } -void galaxold_state::video_start_stratgyx() +VIDEO_START_MEMBER(galaxold_state,stratgyx) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_draw_background = &galaxold_state::stratgyx_draw_background; } -void galaxold_state::video_start_ckongs() +VIDEO_START_MEMBER(galaxold_state,ckongs) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_modify_spritecode = &galaxold_state::mshuttle_modify_spritecode; } -void galaxold_state::video_start_mariner() +VIDEO_START_MEMBER(galaxold_state,mariner) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_draw_stars = &galaxold_state::mariner_draw_stars; @@ -522,17 +522,17 @@ void galaxold_state::video_start_mariner() m_modify_charcode = &galaxold_state::mariner_modify_charcode; } -void galaxold_state::video_start_mimonkey() +VIDEO_START_MEMBER(galaxold_state,mimonkey) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_modify_charcode = &galaxold_state::mimonkey_modify_charcode; m_modify_spritecode = &galaxold_state::mimonkey_modify_spritecode; } -void galaxold_state::video_start_dkongjrm() +VIDEO_START_MEMBER(galaxold_state,dkongjrm) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_modify_charcode = &galaxold_state::pisces_modify_charcode; m_modify_spritecode = &galaxold_state::dkongjrm_modify_spritecode; @@ -540,17 +540,17 @@ void galaxold_state::video_start_dkongjrm() m_spriteram2_present= 1; } -void galaxold_state::video_start_dkongjrmc() +VIDEO_START_MEMBER(galaxold_state,dkongjrmc) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_modify_charcode = &galaxold_state::pisces_modify_charcode; m_modify_spritecode = &galaxold_state::dkongjrmc_modify_spritecode; } -void galaxold_state::video_start_scorpion() +VIDEO_START_MEMBER(galaxold_state,scorpion) { - video_start_scrambold(); + VIDEO_START_CALL_MEMBER(scrambold); m_modify_spritecode = &galaxold_state::batman2_modify_spritecode; } @@ -560,9 +560,9 @@ void galaxold_state::pisces_modify_spritecode(uint8_t *spriteram, int *code, int *code |= (m_gfxbank[0] << 6); } -void galaxold_state::video_start_pisces() +VIDEO_START_MEMBER(galaxold_state,pisces) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_modify_charcode = &galaxold_state::pisces_modify_charcode; m_modify_spritecode = &galaxold_state::pisces_modify_spritecode; @@ -584,9 +584,9 @@ void galaxold_state::theend_draw_bullets(bitmap_ind16 &bitmap, const rectangle & } } -void galaxold_state::video_start_theend() +VIDEO_START_MEMBER(galaxold_state,theend) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_draw_bullets = &galaxold_state::theend_draw_bullets; } @@ -600,9 +600,9 @@ void galaxold_state::mooncrst_modify_spritecode(uint8_t *spriteram, int *code, i } } -void galaxold_state::video_start_mooncrst() +VIDEO_START_MEMBER(galaxold_state,mooncrst) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_modify_charcode = &galaxold_state::mooncrst_modify_charcode; m_modify_spritecode = &galaxold_state::mooncrst_modify_spritecode; @@ -618,9 +618,9 @@ void galaxold_state::rockclim_modify_spritecode(uint8_t *spriteram, int *code, i if (m_gfxbank[2]) *code|=0x40; } -void galaxold_state::video_start_rockclim() +VIDEO_START_MEMBER(galaxold_state,rockclim) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_rockclim_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::rockclim_get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,64,32); m_draw_background = &galaxold_state::rockclim_draw_background; @@ -645,7 +645,7 @@ TILE_GET_INFO_MEMBER(galaxold_state::drivfrcg_get_tile_info) SET_TILE_INFO_MEMBER(0, code, color, 0); } -void galaxold_state::video_start_drivfrcg() +VIDEO_START_MEMBER(galaxold_state,drivfrcg) { video_start_common(); m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::drivfrcg_get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32); @@ -659,7 +659,7 @@ void galaxold_state::video_start_drivfrcg() m_color_mask = 0xff; } -void galaxold_state::video_start_ad2083() +VIDEO_START_MEMBER(galaxold_state,ad2083) { video_start_common(); m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::drivfrcg_get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32); @@ -695,7 +695,7 @@ TILE_GET_INFO_MEMBER(galaxold_state::racknrol_get_tile_info) SET_TILE_INFO_MEMBER(0, code, color, 0); } -void galaxold_state::video_start_racknrol() +VIDEO_START_MEMBER(galaxold_state,racknrol) { video_start_common(); m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::racknrol_get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32); @@ -726,7 +726,7 @@ void galaxold_state::harem_modify_spritecode(uint8_t *spriteram, int *code, int *code |= (m_gfxbank[0] << 7) | 0x40; } -void galaxold_state::video_start_harem() +VIDEO_START_MEMBER(galaxold_state,harem) { video_start_common(); m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(galaxold_state::harem_get_tile_info),this),TILEMAP_SCAN_ROWS,8,8,32,32); @@ -739,16 +739,16 @@ void galaxold_state::video_start_harem() m_modify_spritecode = &galaxold_state::harem_modify_spritecode; } -void galaxold_state::video_start_ozon1() +VIDEO_START_MEMBER(galaxold_state,ozon1) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_bg_tilemap->set_scrolldx(0, 384-256); } -void galaxold_state::video_start_bongo() +VIDEO_START_MEMBER(galaxold_state,bongo) { - video_start_galaxold_plain(); + VIDEO_START_CALL_MEMBER(galaxold_plain); m_bg_tilemap->set_scrolldx(0, 384-256); @@ -775,9 +775,9 @@ TILE_GET_INFO_MEMBER(galaxold_state::dambustr_get_tile_info2) SET_TILE_INFO_MEMBER(0, code, color, 0); } -void galaxold_state::video_start_dambustr() +VIDEO_START_MEMBER(galaxold_state,dambustr) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_dambustr_bg_split_line = 0; m_dambustr_bg_color_1 = 0; @@ -1797,9 +1797,9 @@ void galaxold_state::bagmanmc_modify_spritecode(uint8_t *spriteram, int *code, i *code |= (m_gfxbank[0] << 7) | 0x40; } -void galaxold_state::video_start_bagmanmc() +VIDEO_START_MEMBER(galaxold_state,bagmanmc) { - video_start_galaxold(); + VIDEO_START_CALL_MEMBER(galaxold); m_modify_charcode = &galaxold_state::bagmanmc_modify_charcode; m_modify_spritecode = &galaxold_state::bagmanmc_modify_spritecode; |