Skip to content

Commit

Permalink
exidy440.cpp: partial revert of timer_set removal. This needs to be s…
Browse files Browse the repository at this point in the history
…tudied better. (nw)
  • Loading branch information
Osso13 committed Jun 1, 2017
1 parent cb29a59 commit f94f972
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/mame/includes/exidy440.h
Expand Up @@ -48,7 +48,6 @@ class exidy440_state : public driver_device
uint8_t m_firq_select;
uint8_t m_palettebank_io;
uint8_t m_palettebank_vis;
emu_timer *m_beam_firq_timer;
emu_timer *m_collide_firq_timer;
DECLARE_WRITE8_MEMBER(bankram_w);
DECLARE_READ8_MEMBER(exidy440_input_port_3_r);
Expand Down
3 changes: 1 addition & 2 deletions src/mame/video/exidy440.cpp
Expand Up @@ -52,7 +52,6 @@ VIDEO_START_MEMBER(exidy440_state,exidy440)
memset(m_local_paletteram.get(), 0, 512 * 2);

m_collide_firq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(exidy440_state::collide_firq_callback), this));
m_beam_firq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(exidy440_state::beam_firq_callback), this));
}


Expand Down Expand Up @@ -433,7 +432,7 @@ uint32_t exidy440_state::screen_update_exidy440(screen_device &screen, bitmap_in
attotime time = screen.time_until_pos(beamy, beamx) - increment * 6;
for (i = 0; i <= 12; i++)
{
m_beam_firq_timer->adjust(time, beamx);
machine().scheduler().timer_set(time, timer_expired_delegate(FUNC(exidy440_state::beam_firq_callback),this), beamx);
time += increment;
}
}
Expand Down

1 comment on commit f94f972

@Osso13
Copy link
Member Author

@Osso13 Osso13 commented on f94f972 Jun 2, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.