diff options
Diffstat (limited to 'src/mame/drivers/rotaryf.c')
-rw-r--r-- | src/mame/drivers/rotaryf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/rotaryf.c b/src/mame/drivers/rotaryf.c index 038ff849ee3..d3484574ea6 100644 --- a/src/mame/drivers/rotaryf.c +++ b/src/mame/drivers/rotaryf.c @@ -26,6 +26,7 @@ public: required_device<cpu_device> m_maincpu; required_shared_ptr<UINT8> m_videoram; + UINT32 screen_update_rotaryf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); }; @@ -61,18 +62,17 @@ static TIMER_DEVICE_CALLBACK( rotaryf_interrupt ) * *************************************/ -static SCREEN_UPDATE_RGB32( rotaryf ) +UINT32 rotaryf_state::screen_update_rotaryf(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { - rotaryf_state *state = screen.machine().driver_data<rotaryf_state>(); offs_t offs; - for (offs = 0; offs < state->m_videoram.bytes(); offs++) + for (offs = 0; offs < m_videoram.bytes(); offs++) { int i; UINT8 x = offs << 3; int y = offs >> 5; - UINT8 data = state->m_videoram[offs]; + UINT8 data = m_videoram[offs]; for (i = 0; i < 8; i++) { @@ -178,7 +178,7 @@ static MACHINE_CONFIG_START( rotaryf, rotaryf_state ) MCFG_SCREEN_SIZE(32*8, 262) /* vert size is a guess, taken from mw8080bw */ MCFG_SCREEN_VISIBLE_AREA(1*8, 30*8-1, 0*8, 32*8-1) MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_UPDATE_STATIC(rotaryf) + MCFG_SCREEN_UPDATE_DRIVER(rotaryf_state, screen_update_rotaryf) MACHINE_CONFIG_END |