summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/madalien.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-12-29 18:29:06 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-12-29 18:29:06 +0000
commit06da0b9b9f3ac511893e17925bddae85bb7ffa7b (patch)
tree9fd6f47d07ec8c5b492b380d9c1e8a949b88f9bd /src/mame/video/madalien.c
parent87c11a79d70ef787f57a57ba3447f7f1b0d8aa7e (diff)
Change 'screen' parameter in SCREEN_UPDATE and SCREEN_EOF callbacks to a
reference. Remove redundant machine parameter from SCREEN_EOF. Remove old vestiges of driver_device video_eof override since it wasn't being used. Update all multi-screen games to use separate functions for each screen (calling into common code where appropriate). [Aaron Giles] (nw: equivalent MESS changes are ready, will send along shortly)
Diffstat (limited to 'src/mame/video/madalien.c')
-rw-r--r--src/mame/video/madalien.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c
index d10937df7e9..bdda00f6665 100644
--- a/src/mame/video/madalien.c
+++ b/src/mame/video/madalien.c
@@ -253,8 +253,8 @@ WRITE8_HANDLER( madalien_charram_w )
static SCREEN_UPDATE( madalien )
{
- madalien_state *state = screen->machine().driver_data<madalien_state>();
- int flip = BIT(input_port_read(screen->machine(), "DSW"), 6) && BIT(*state->m_video_control, 0);
+ madalien_state *state = screen.machine().driver_data<madalien_state>();
+ int flip = BIT(input_port_read(screen.machine(), "DSW"), 6) && BIT(*state->m_video_control, 0);
// bits #0 and #1 define scrolling mode
//
@@ -266,8 +266,8 @@ static SCREEN_UPDATE( madalien )
int scroll_mode = *state->m_scroll & 3;
bitmap_fill(bitmap, cliprect, 0);
- draw_edges(screen->machine(), bitmap, cliprect, flip, scroll_mode);
- draw_foreground(screen->machine(), bitmap, cliprect, flip);
+ draw_edges(screen.machine(), bitmap, cliprect, flip, scroll_mode);
+ draw_foreground(screen.machine(), bitmap, cliprect, flip);
/* highlight section A (outside of tunnels).
* also, bit 1 of the video_flags register (6A) is
@@ -301,7 +301,7 @@ static SCREEN_UPDATE( madalien )
*BITMAP_ADDR16(bitmap, y, x) |= 8;
}
- draw_headlight(screen->machine(), bitmap, cliprect, flip);
+ draw_headlight(screen.machine(), bitmap, cliprect, flip);
return 0;
}