summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/interact.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/interact.c')
-rw-r--r--src/mess/drivers/interact.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mess/drivers/interact.c b/src/mess/drivers/interact.c
index 0c395f5a20b..4d0705bff84 100644
--- a/src/mess/drivers/interact.c
+++ b/src/mess/drivers/interact.c
@@ -72,6 +72,7 @@ public:
required_shared_ptr<UINT8> m_videoram;
DECLARE_MACHINE_START(interact);
DECLARE_MACHINE_RESET(interact);
+ UINT32 screen_update_interact(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
@@ -129,10 +130,9 @@ MACHINE_START_MEMBER(interact_state,interact)
hector_init(machine());
}
-static SCREEN_UPDATE_IND16( interact )
+UINT32 interact_state::screen_update_interact(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- interact_state *state = screen.machine().driver_data<interact_state>();
- UINT8 *videoram = state->m_videoram;
+ UINT8 *videoram = m_videoram;
screen.set_visible_area(0, 113, 0, 75);
hector_hr( screen.machine(), bitmap, videoram, 77, 32);
return 0;
@@ -154,7 +154,7 @@ static MACHINE_CONFIG_START( interact, interact_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
MCFG_SCREEN_SIZE(256, 79)
MCFG_SCREEN_VISIBLE_AREA(0, 112, 0, 77)
- MCFG_SCREEN_UPDATE_STATIC(interact)
+ MCFG_SCREEN_UPDATE_DRIVER(interact_state, screen_update_interact)
MCFG_PALETTE_LENGTH(16) /* 8 colours, but only 4 at a time*/
@@ -195,7 +195,7 @@ static MACHINE_CONFIG_START( hector1, interact_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
MCFG_SCREEN_SIZE(256, 79)
MCFG_SCREEN_VISIBLE_AREA(0, 112, 0, 77)
- MCFG_SCREEN_UPDATE_STATIC(interact)
+ MCFG_SCREEN_UPDATE_DRIVER(interact_state, screen_update_interact)
MCFG_PALETTE_LENGTH(16) /* 8 colours, but only 4 at a time*/