summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gunpey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gunpey.c')
-rw-r--r--src/mame/drivers/gunpey.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/gunpey.c b/src/mame/drivers/gunpey.c
index 51ba42a9e88..5b75f37fdf9 100644
--- a/src/mame/drivers/gunpey.c
+++ b/src/mame/drivers/gunpey.c
@@ -94,6 +94,7 @@ public:
DECLARE_DRIVER_INIT(gunpey);
virtual void video_start();
virtual void palette_init();
+ UINT32 screen_update_gunpey(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
};
@@ -102,10 +103,9 @@ void gunpey_state::video_start()
m_blit_buffer = auto_alloc_array(machine(), UINT16, 512*512);
}
-static SCREEN_UPDATE_RGB32( gunpey )
+UINT32 gunpey_state::screen_update_gunpey(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- gunpey_state *state = screen.machine().driver_data<gunpey_state>();
- UINT16 *blit_buffer = state->m_blit_buffer;
+ UINT16 *blit_buffer = m_blit_buffer;
int x,y;
int count;
@@ -375,7 +375,7 @@ static MACHINE_CONFIG_START( gunpey, gunpey_state )
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
MCFG_SCREEN_SIZE(512, 512)
MCFG_SCREEN_VISIBLE_AREA(0*8, 512-1, 0*8, 512-1)
- MCFG_SCREEN_UPDATE_STATIC(gunpey)
+ MCFG_SCREEN_UPDATE_DRIVER(gunpey_state, screen_update_gunpey)
MCFG_PALETTE_LENGTH(0x800)