diff --git a/src/mame/video/neogeo.c b/src/mame/video/neogeo.c index 02b9fd3ddb9..8f376a637b6 100644 --- a/src/mame/video/neogeo.c +++ b/src/mame/video/neogeo.c @@ -414,7 +414,7 @@ INLINE int sprite_on_scanline(int scanline, int y, int rows) } -static void draw_sprites(running_machine *machine, bitmap_t *bitmap, int scanline) +static void draw_sprites(bitmap_t *bitmap, int scanline) { int sprite_index; int max_sprite_index; @@ -650,12 +650,8 @@ static void parse_sprites(int scanline) } /* fill the rest of the sprite list with 0, including one extra entry */ - for (; active_sprite_count <= MAX_SPRITES_PER_LINE ; active_sprite_count++) - { - *sprite_list = 0; - - sprite_list++; - } + memset(sprite_list, 0, + sizeof(sprite_list[0]) * (MAX_SPRITES_PER_LINE - active_sprite_count + 1)); } @@ -934,7 +930,7 @@ VIDEO_UPDATE( neogeo ) /* fill with background color first */ fillbitmap(bitmap, pens[0x0fff], cliprect); - draw_sprites(screen->machine, bitmap, cliprect->min_y); + draw_sprites(bitmap, cliprect->min_y); draw_fixed_layer(screen->machine, bitmap, cliprect->min_y); diff --git a/src/mame/video/tx1.c b/src/mame/video/tx1.c index 2d0ee5a8459..fc55b84ee18 100644 --- a/src/mame/video/tx1.c +++ b/src/mame/video/tx1.c @@ -5,7 +5,6 @@ ****************************************************************************/ #include "driver.h" -#include "profiler.h" #include "render.h" #include "cpu/i86/i86.h" #include "video/resnet.h" @@ -1513,8 +1512,6 @@ static void buggybjr_draw_road(running_machine *machine, UINT8 *bitmap, int wide wave1 = BIT(vregs.flags, BB_RDFLAG_WAVE1); rva_offs = BIT(vregs.flags, BB_RDFLAG_RVA7) ? 0x800 : 0xc00; - profiler_mark(PROFILER_USER1); - for (y = 0; y < 240; ++y) { UINT8 rva0_6;