summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/lazercmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/lazercmd.c')
-rw-r--r--src/mame/video/lazercmd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/video/lazercmd.c b/src/mame/video/lazercmd.c
index 34b2cf6738b..c9e99c5fe7d 100644
--- a/src/mame/video/lazercmd.c
+++ b/src/mame/video/lazercmd.c
@@ -50,9 +50,8 @@ static void plot_pattern( running_machine &machine, bitmap_ind16 &bitmap, int x,
}
-SCREEN_UPDATE_IND16( lazercmd )
+UINT32 lazercmd_state::screen_update_lazercmd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- lazercmd_state *state = screen.machine().driver_data<lazercmd_state>();
int i, x, y;
int video_inverted = screen.machine().root_device().ioport("DSW")->read() & 0x20;
@@ -69,13 +68,13 @@ SCREEN_UPDATE_IND16( lazercmd )
sy *= VERT_CHR;
drawgfx_opaque(bitmap, cliprect,screen.machine().gfx[0],
- state->m_videoram[i], video_inverted ? 1 : 0,
+ m_videoram[i], video_inverted ? 1 : 0,
0,0,
sx,sy);
}
- x = state->m_marker_x - 1; /* normal video lags marker by 1 pixel */
- y = vert_scale(state->m_marker_y) - VERT_CHR; /* first line used as scratch pad */
+ x = m_marker_x - 1; /* normal video lags marker by 1 pixel */
+ y = vert_scale(m_marker_y) - VERT_CHR; /* first line used as scratch pad */
plot_pattern(screen.machine(), bitmap, x, y);
return 0;