diff options
author | David Haywood <mamehaze@users.noreply.github.com> | 2015-09-29 00:05:02 +0100 |
---|---|---|
committer | David Haywood <mamehaze@users.noreply.github.com> | 2015-09-29 00:05:02 +0100 |
commit | 0353dc199d86189c2c069e342c7ebd1b404943c2 (patch) | |
tree | f90c775de3306a669451e1f1bc48ccb4b50b8b96 | |
parent | 0bd0a3ed1c1d60d2c3c491e013d44e07b0bc581a (diff) |
(nw)
-rw-r--r-- | src/mame/drivers/scramble.c | 2 | ||||
-rw-r--r-- | src/mame/includes/galaxold.h | 5 | ||||
-rw-r--r-- | src/mame/video/galaxold.c | 13 |
3 files changed, 16 insertions, 4 deletions
diff --git a/src/mame/drivers/scramble.c b/src/mame/drivers/scramble.c index 1e6f43f4a14..27f277f0cae 100644 --- a/src/mame/drivers/scramble.c +++ b/src/mame/drivers/scramble.c @@ -1458,7 +1458,7 @@ static MACHINE_CONFIG_DERIVED( newsin7, scramble ) MCFG_PALETTE_MODIFY("palette") MCFG_PALETTE_ENTRIES(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ MCFG_PALETTE_INIT_OWNER(scramble_state,galaxold) - MCFG_VIDEO_START_OVERRIDE(scramble_state,scrambold) + MCFG_VIDEO_START_OVERRIDE(scramble_state,newsin7) MACHINE_CONFIG_END static MACHINE_CONFIG_DERIVED( mrkougar, scramble ) diff --git a/src/mame/includes/galaxold.h b/src/mame/includes/galaxold.h index 5c14ae84af7..b7c8d1482d3 100644 --- a/src/mame/includes/galaxold.h +++ b/src/mame/includes/galaxold.h @@ -42,7 +42,8 @@ public: m_attributesram(*this,"attributesram"), m_bulletsram(*this,"bulletsram"), m_rockclim_videoram(*this,"rockclim_vram"), - m_racknrol_tiles_bank(*this,"racknrol_tbank") + m_racknrol_tiles_bank(*this,"racknrol_tbank"), + m_leftclip(2) { } @@ -75,6 +76,7 @@ public: UINT8 m_color_mask; tilemap_t *m_dambustr_tilemap2; UINT8 *m_dambustr_videoram2; + int m_leftclip; void (galaxold_state::*m_modify_charcode)(UINT16 *code, UINT8 x); /* function to call to do character banking */ void (galaxold_state::*m_modify_spritecode)(UINT8 *spriteram, int*, int*, int*, int); /* function to call to do sprite banking */ @@ -189,6 +191,7 @@ public: DECLARE_VIDEO_START(batman2); DECLARE_VIDEO_START(mooncrst); DECLARE_VIDEO_START(scrambold); + DECLARE_VIDEO_START(newsin7); DECLARE_VIDEO_START(pisces); DECLARE_VIDEO_START(dkongjrm); DECLARE_VIDEO_START(rockclim); diff --git a/src/mame/video/galaxold.c b/src/mame/video/galaxold.c index 643d68d89bb..bdfa8dd068c 100644 --- a/src/mame/video/galaxold.c +++ b/src/mame/video/galaxold.c @@ -95,6 +95,7 @@ PALETTE_INIT_MEMBER(galaxold_state,scrambold) } + PALETTE_INIT_MEMBER(galaxold_state,stratgyx) { int base = BACKGROUND_COLOR_BASE; @@ -460,6 +461,14 @@ VIDEO_START_MEMBER(galaxold_state,scrambold) m_draw_background = &galaxold_state::scrambold_draw_background; } +VIDEO_START_MEMBER(galaxold_state, newsin7) +{ + VIDEO_START_CALL_MEMBER(scrambold); + + m_leftclip = 0; +} + + VIDEO_START_MEMBER(galaxold_state,darkplnt) { VIDEO_START_CALL_MEMBER(galaxold_plain); @@ -1643,8 +1652,8 @@ void galaxold_state::draw_bullets_common(bitmap_ind16 &bitmap, const rectangle & void galaxold_state::draw_sprites(bitmap_ind16 &bitmap, UINT8 *spriteram, size_t spriteram_size) { - const rectangle spritevisiblearea(2*8+1, 32*8-1, 2*8, 30*8-1); - const rectangle spritevisibleareaflipx(0*8, 30*8-2, 2*8, 30*8-1); + const rectangle spritevisiblearea((0+m_leftclip)*8+1, 32*8-1, 2*8, 30*8-1); + const rectangle spritevisibleareaflipx(0*8, (32-m_leftclip)*8-2, 2*8, 30*8-1); int offs; |