diff options
Diffstat (limited to 'src/mame/drivers/spaceg.c')
-rw-r--r-- | src/mame/drivers/spaceg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/spaceg.c b/src/mame/drivers/spaceg.c index 2288c6931cb..5e4f2a8fb21 100644 --- a/src/mame/drivers/spaceg.c +++ b/src/mame/drivers/spaceg.c @@ -190,6 +190,7 @@ public: DECLARE_WRITE8_MEMBER(zvideoram_w); DECLARE_READ8_MEMBER(spaceg_colorram_r); virtual void palette_init(); + UINT32 screen_update_spaceg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; /************************************* @@ -297,21 +298,20 @@ READ8_MEMBER(spaceg_state::spaceg_colorram_r) } -static SCREEN_UPDATE_IND16( spaceg ) +UINT32 spaceg_state::screen_update_spaceg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - spaceg_state *state = screen.machine().driver_data<spaceg_state>(); offs_t offs; for (offs = 0; offs < 0x2000; offs++) { int i; - UINT8 data = state->m_videoram[offs]; + UINT8 data = m_videoram[offs]; int y = offs & 0xff; int x = (offs >> 8) << 3; for (i = 0; i < 8; i++) { - bitmap.pix16(y, x) = (data & 0x80) ? state->m_colorram[offs] : 0; + bitmap.pix16(y, x) = (data & 0x80) ? m_colorram[offs] : 0; x++; data <<= 1; @@ -436,7 +436,7 @@ static MACHINE_CONFIG_START( spaceg, spaceg_state ) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ MCFG_SCREEN_SIZE(256, 256) MCFG_SCREEN_VISIBLE_AREA(0, 255, 32, 255) - MCFG_SCREEN_UPDATE_STATIC( spaceg ) + MCFG_SCREEN_UPDATE_DRIVER(spaceg_state, screen_update_spaceg) MCFG_PALETTE_LENGTH(16+128-16) |