mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Removed m_bFlicker variable and used screen.frame_number instead
This commit is contained in:
parent
de1b4f51a7
commit
98ab24199d
@ -264,7 +264,6 @@ GFXDECODE_END
|
|||||||
|
|
||||||
void shootout_state::machine_reset ()
|
void shootout_state::machine_reset ()
|
||||||
{
|
{
|
||||||
m_bFlicker = 0;
|
|
||||||
m_ccnt_old_val = 0x40;
|
m_ccnt_old_val = 0x40;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ public:
|
|||||||
tilemap_t *m_background;
|
tilemap_t *m_background;
|
||||||
tilemap_t *m_foreground;
|
tilemap_t *m_foreground;
|
||||||
|
|
||||||
int m_bFlicker;
|
|
||||||
int m_ccnt_old_val;
|
int m_ccnt_old_val;
|
||||||
|
|
||||||
DECLARE_WRITE8_MEMBER(bankswitch_w);
|
DECLARE_WRITE8_MEMBER(bankswitch_w);
|
||||||
|
@ -83,7 +83,6 @@ void shootout_state::video_start()
|
|||||||
m_foreground = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(shootout_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
m_foreground = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(shootout_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||||
m_foreground->set_transparent_pen(0 );
|
m_foreground->set_transparent_pen(0 );
|
||||||
|
|
||||||
save_item(NAME(m_bFlicker));
|
|
||||||
save_item(NAME(m_ccnt_old_val));
|
save_item(NAME(m_ccnt_old_val));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +92,7 @@ void shootout_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, c
|
|||||||
const uint8_t *source = m_spriteram+127*4;
|
const uint8_t *source = m_spriteram+127*4;
|
||||||
int count;
|
int count;
|
||||||
|
|
||||||
m_bFlicker = !m_bFlicker;
|
bool m_bFlicker = (screen.frame_number () & 1) != 0;
|
||||||
|
|
||||||
for( count=0; count<128; count++ )
|
for( count=0; count<128; count++ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user