summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/sprint2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/sprint2.c')
-rw-r--r--src/mame/video/sprint2.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/video/sprint2.c b/src/mame/video/sprint2.c
index a26d5f67adf..2e2a03051f3 100644
--- a/src/mame/video/sprint2.c
+++ b/src/mame/video/sprint2.c
@@ -125,7 +125,7 @@ UINT32 sprint2_state::screen_update_sprint2(screen_device &screen, bitmap_ind16
for (i = 0; i < 4; i++)
{
- drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[1],
+ drawgfx_transpen(bitmap, cliprect, machine().gfx[1],
get_sprite_code(video_ram, i),
i,
0, 0,
@@ -144,7 +144,7 @@ void sprint2_state::screen_eof_sprint2(screen_device &screen, bool state)
UINT8 *video_ram = m_video_ram;
int i;
int j;
- const rectangle &visarea = screen.machine().primary_screen->visible_area();
+ const rectangle &visarea = machine().primary_screen->visible_area();
/*
* Collisions are detected for both player cars:
@@ -160,8 +160,8 @@ void sprint2_state::screen_eof_sprint2(screen_device &screen, bool state)
rect.min_x = get_sprite_x(video_ram, i);
rect.min_y = get_sprite_y(video_ram, i);
- rect.max_x = get_sprite_x(video_ram, i) + screen.machine().gfx[1]->width() - 1;
- rect.max_y = get_sprite_y(video_ram, i) + screen.machine().gfx[1]->height() - 1;
+ rect.max_x = get_sprite_x(video_ram, i) + machine().gfx[1]->width() - 1;
+ rect.max_y = get_sprite_y(video_ram, i) + machine().gfx[1]->height() - 1;
rect &= visarea;
@@ -169,21 +169,21 @@ void sprint2_state::screen_eof_sprint2(screen_device &screen, bool state)
m_bg_tilemap->draw(m_helper, rect, 0, 0);
- drawgfx_transpen(m_helper, rect, screen.machine().gfx[1],
+ drawgfx_transpen(m_helper, rect, machine().gfx[1],
get_sprite_code(video_ram, i),
0,
0, 0,
get_sprite_x(video_ram, i),
get_sprite_y(video_ram, i), 1);
- m_collision[i] |= collision_check(this, screen.machine().colortable, rect);
+ m_collision[i] |= collision_check(this, machine().colortable, rect);
/* check for sprite-sprite collisions */
for (j = 0; j < 4; j++)
if (j != i)
{
- drawgfx_transpen(m_helper, rect, screen.machine().gfx[1],
+ drawgfx_transpen(m_helper, rect, machine().gfx[1],
get_sprite_code(video_ram, j),
1,
0, 0,
@@ -191,14 +191,14 @@ void sprint2_state::screen_eof_sprint2(screen_device &screen, bool state)
get_sprite_y(video_ram, j), 0);
}
- drawgfx_transpen(m_helper, rect, screen.machine().gfx[1],
+ drawgfx_transpen(m_helper, rect, machine().gfx[1],
get_sprite_code(video_ram, i),
0,
0, 0,
get_sprite_x(video_ram, i),
get_sprite_y(video_ram, i), 1);
- m_collision[i] |= collision_check(this, screen.machine().colortable, rect);
+ m_collision[i] |= collision_check(this, machine().colortable, rect);
}
}
}