diff options
Diffstat (limited to 'src/mame/drivers/mpoker.c')
-rw-r--r-- | src/mame/drivers/mpoker.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/mpoker.c b/src/mame/drivers/mpoker.c index 08237846a5e..2da44d68377 100644 --- a/src/mame/drivers/mpoker.c +++ b/src/mame/drivers/mpoker.c @@ -197,6 +197,7 @@ public: DECLARE_WRITE8_MEMBER(sound_w); virtual void video_start(); virtual void palette_init(); + UINT32 screen_update_mpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; @@ -205,9 +206,8 @@ void mpoker_state::video_start() } -static SCREEN_UPDATE_IND16(mpoker) +UINT32 mpoker_state::screen_update_mpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - mpoker_state *state = screen.machine().driver_data<mpoker_state>(); int y,x; int count; gfx_element *gfx = screen.machine().gfx[0]; @@ -217,8 +217,8 @@ static SCREEN_UPDATE_IND16(mpoker) { for (x=0;x<32;x++) { - UINT16 dat = state->m_video[count]; - UINT16 col = state->m_video[count+0x400] & 0x7f; + UINT16 dat = m_video[count]; + UINT16 col = m_video[count+0x400] & 0x7f; drawgfx_opaque(bitmap,cliprect,gfx,dat,col,0,0,x*16,y*16); count++; } @@ -596,7 +596,7 @@ static MACHINE_CONFIG_START( mpoker, mpoker_state ) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) MCFG_SCREEN_SIZE(512, 256) MCFG_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) - MCFG_SCREEN_UPDATE_STATIC(mpoker) + MCFG_SCREEN_UPDATE_DRIVER(mpoker_state, screen_update_mpoker) MCFG_GFXDECODE(mpoker) MCFG_PALETTE_LENGTH(0x200) |