diff options
Diffstat (limited to 'src/mame/video/starshp1.c')
-rw-r--r-- | src/mame/video/starshp1.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/video/starshp1.c b/src/mame/video/starshp1.c index ed8af86c740..7174d78c242 100644 --- a/src/mame/video/starshp1.c +++ b/src/mame/video/starshp1.c @@ -108,16 +108,16 @@ VIDEO_START( starshp1 ) val = (val << 1) | (bit & 1); } - helper = video_screen_auto_bitmap_alloc(machine->primary_screen); + helper = machine->primary_screen->alloc_compatible_bitmap(); } READ8_HANDLER( starshp1_rng_r ) { - int width = video_screen_get_width(space->machine->primary_screen); - int height = video_screen_get_height(space->machine->primary_screen); - int x = video_screen_get_hpos(space->machine->primary_screen); - int y = video_screen_get_vpos(space->machine->primary_screen); + int width = space->machine->primary_screen->width(); + int height = space->machine->primary_screen->height(); + int x = space->machine->primary_screen->hpos(); + int y = space->machine->primary_screen->vpos(); /* the LFSR is only running in the non-blank region of the screen, so this is not quite right */ @@ -406,7 +406,7 @@ VIDEO_UPDATE( starshp1 ) VIDEO_EOF( starshp1 ) { rectangle rect; - const rectangle *visarea = video_screen_get_visible_area(machine->primary_screen); + const rectangle &visarea = machine->primary_screen->visible_area(); rect.min_x = get_sprite_hpos(13); rect.min_y = get_sprite_vpos(13); @@ -422,12 +422,12 @@ VIDEO_EOF( starshp1 ) if (rect.max_y > helper->height - 1) rect.max_y = helper->height - 1; - bitmap_fill(helper, visarea, 0); + bitmap_fill(helper, &visarea, 0); if (starshp1_attract == 0) - draw_spaceship(machine, helper, visarea); + draw_spaceship(machine, helper, &visarea); - if (circle_collision(visarea)) + if (circle_collision(&visarea)) starshp1_collision_latch |= 1; if (circle_collision(&rect)) @@ -436,6 +436,6 @@ VIDEO_EOF( starshp1 ) if (spaceship_collision(helper, &rect)) starshp1_collision_latch |= 4; - if (spaceship_collision(helper, visarea)) + if (spaceship_collision(helper, &visarea)) starshp1_collision_latch |= 8; } |