summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/progolf.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/drivers/progolf.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/drivers/progolf.c')
-rw-r--r--src/mame/drivers/progolf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/progolf.c b/src/mame/drivers/progolf.c
index bd83cf3ef4d..07308f8410f 100644
--- a/src/mame/drivers/progolf.c
+++ b/src/mame/drivers/progolf.c
@@ -89,7 +89,7 @@ static VIDEO_START( progolf )
static SCREEN_UPDATE( progolf )
{
- progolf_state *state = screen->machine().driver_data<progolf_state>();
+ progolf_state *state = screen.machine().driver_data<progolf_state>();
UINT8 *videoram = state->m_videoram;
int count,color,x,y,xi,yi;
@@ -104,9 +104,9 @@ static SCREEN_UPDATE( progolf )
{
int tile = videoram[count];
- drawgfx_opaque(bitmap,cliprect,screen->machine().gfx[0],tile,1,0,0,(256-x*8)+scroll,y*8);
+ drawgfx_opaque(bitmap,cliprect,screen.machine().gfx[0],tile,1,0,0,(256-x*8)+scroll,y*8);
/* wrap-around */
- drawgfx_opaque(bitmap,cliprect,screen->machine().gfx[0],tile,1,0,0,(256-x*8)+scroll-1024,y*8);
+ drawgfx_opaque(bitmap,cliprect,screen.machine().gfx[0],tile,1,0,0,(256-x*8)+scroll-1024,y*8);
count++;
}
@@ -128,7 +128,7 @@ static SCREEN_UPDATE( progolf )
color = state->m_fg_fb[(xi+yi*8)+count*0x40];
if((x+yi) <= cliprect->max_x && (256-y+xi) <= cliprect->max_y && color != 0)
- *BITMAP_ADDR16(bitmap, x+yi, 256-y+xi) = screen->machine().pens[(color & 0x7)];
+ *BITMAP_ADDR16(bitmap, x+yi, 256-y+xi) = screen.machine().pens[(color & 0x7)];
}
}