From cca576b1528d6fbfd205f888a7aa74998d420430 Mon Sep 17 00:00:00 2001 From: Zsolt Vasvari Date: Tue, 22 Jan 2008 06:52:34 +0000 Subject: [PATCH] - Removed VIDEO_START_CALL(generic) from all drivers not needing it, which were all of them - Removed VIDEO_START_CALL(generic_bitmapped) from jpmimpct. By the way, Clueo has a bug where the screen is not cleared properly obscuring instructional text. This happens after the demo mode takes a photo of the 'body' --- src/mame/video/4enraya.c | 1 - src/mame/video/exerion.c | 2 -- src/mame/video/fcombat.c | 1 - src/mame/video/flstory.c | 2 -- src/mame/video/goldstar.c | 15 +++++++-------- src/mame/video/jpmimpct.c | 2 -- src/mame/video/nycaptor.c | 1 - src/mame/video/pitnrun.c | 1 - src/mame/video/skychut.c | 4 ---- src/mame/video/wiz.c | 2 -- 10 files changed, 7 insertions(+), 24 deletions(-) diff --git a/src/mame/video/4enraya.c b/src/mame/video/4enraya.c index 7e213c47585..730032efb52 100644 --- a/src/mame/video/4enraya.c +++ b/src/mame/video/4enraya.c @@ -30,7 +30,6 @@ static TILE_GET_INFO( get_tile_info ) VIDEO_START( 4enraya ) { bg_tilemap = tilemap_create( get_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN,8,8,32,32 ); - VIDEO_START_CALL(generic); } VIDEO_UPDATE( 4enraya) diff --git a/src/mame/video/exerion.c b/src/mame/video/exerion.c index 02c56aa3085..a0eadedd750 100644 --- a/src/mame/video/exerion.c +++ b/src/mame/video/exerion.c @@ -162,8 +162,6 @@ VIDEO_START( exerion ) *dst++ = 0; } } - - VIDEO_START_CALL(generic); } diff --git a/src/mame/video/fcombat.c b/src/mame/video/fcombat.c index 249d1644eeb..02e32bf5657 100644 --- a/src/mame/video/fcombat.c +++ b/src/mame/video/fcombat.c @@ -116,7 +116,6 @@ PALETTE_INIT( fcombat ) VIDEO_START( fcombat ) { bgmap = tilemap_create(get_bg_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN, 16, 16,32*8*2,32); - VIDEO_START_CALL(generic); } diff --git a/src/mame/video/flstory.c b/src/mame/video/flstory.c index abf643d0ce1..a879f67eff0 100644 --- a/src/mame/video/flstory.c +++ b/src/mame/video/flstory.c @@ -54,7 +54,6 @@ VIDEO_START( flstory ) paletteram = auto_malloc(0x200); paletteram_2 = auto_malloc(0x200); - VIDEO_START_CALL(generic); } VIDEO_START( victnine ) @@ -64,7 +63,6 @@ VIDEO_START( victnine ) paletteram = auto_malloc(0x200); paletteram_2 = auto_malloc(0x200); - VIDEO_START_CALL(generic); } WRITE8_HANDLER( flstory_videoram_w ) diff --git a/src/mame/video/goldstar.c b/src/mame/video/goldstar.c index f4286cf5672..a8fc6611402 100644 --- a/src/mame/video/goldstar.c +++ b/src/mame/video/goldstar.c @@ -14,7 +14,7 @@ UINT8 *goldstar_video1, *goldstar_video2, *goldstar_video3; size_t goldstar_video_size; UINT8 *goldstar_scroll1, *goldstar_scroll2, *goldstar_scroll3; -static mame_bitmap *tmpbitmap1, *tmpbitmap2, *tmpbitmap3; +static mame_bitmap *tmpbitmap1, *tmpbitmap2, *tmpbitmap3, *tmpbitmap4; static int bgcolor; @@ -28,12 +28,11 @@ VIDEO_START( goldstar ) { // int i; - VIDEO_START_CALL(generic); - /* the background area is half as high as the screen */ tmpbitmap1 = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); tmpbitmap2 = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); tmpbitmap3 = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); + tmpbitmap4 = auto_bitmap_alloc(machine->screen[0].width,machine->screen[0].height,machine->screen[0].format); /* leave everything at the default, but map all foreground 0 pens as transparent */ // for (i = 0;i < 16;i++) palette_used_colors[8 * i] = PALETTE_COLOR_TRANSPARENT; @@ -70,7 +69,7 @@ VIDEO_UPDATE( goldstar ) sx = offs % 64; sy = offs / 64; - drawgfx(tmpbitmap,machine->gfx[0], + drawgfx(tmpbitmap4,machine->gfx[0], videoram[offs] + ((colorram[offs] & 0xf0) << 4), colorram[offs] & 0x0f, 0,0, @@ -78,7 +77,7 @@ VIDEO_UPDATE( goldstar ) 0,TRANSPARENCY_NONE,0); } - copybitmap(bitmap,tmpbitmap,0,0,0,0,cliprect,TRANSPARENCY_NONE,0); + copybitmap(bitmap,tmpbitmap4,0,0,0,0,cliprect,TRANSPARENCY_NONE,0); for (offs = goldstar_video_size - 1;offs >= 0;offs--) @@ -116,19 +115,19 @@ VIDEO_UPDATE( goldstar ) scrolly[i] = -goldstar_scroll1[i]; copyscrollbitmap(bitmap,tmpbitmap1,0,0,64,scrolly,&visible1,TRANSPARENCY_NONE,0); - copybitmap(bitmap,tmpbitmap,0,0,0,0,&visible1,TRANSPARENCY_PEN,0); + copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible1,TRANSPARENCY_PEN,0); for (i= 0;i < 64;i++) scrolly[i] = -goldstar_scroll2[i]; copyscrollbitmap(bitmap,tmpbitmap2,0,0,64,scrolly,&visible2,TRANSPARENCY_NONE,0); - copybitmap(bitmap,tmpbitmap,0,0,0,0,&visible2,TRANSPARENCY_PEN,0); + copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible2,TRANSPARENCY_PEN,0); for (i= 0;i < 64;i++) scrolly[i] = -goldstar_scroll3[i]; copyscrollbitmap(bitmap,tmpbitmap3,0,0,64,scrolly,&visible3,TRANSPARENCY_NONE,0); - copybitmap(bitmap,tmpbitmap,0,0,0,0,&visible3,TRANSPARENCY_PEN,0); + copybitmap(bitmap,tmpbitmap4,0,0,0,0,&visible3,TRANSPARENCY_PEN,0); } return 0; } diff --git a/src/mame/video/jpmimpct.c b/src/mame/video/jpmimpct.c index 22ec9bc205d..11f4ddbc8dd 100644 --- a/src/mame/video/jpmimpct.c +++ b/src/mame/video/jpmimpct.c @@ -146,6 +146,4 @@ VIDEO_START( jpmimpct ) state_save_register_global(bt477.pixmask); state_save_register_global(bt477.command); state_save_register_global(bt477.color); - - VIDEO_START_CALL(generic_bitmapped); } diff --git a/src/mame/video/nycaptor.c b/src/mame/video/nycaptor.c index 253699fc26e..196a69453ba 100644 --- a/src/mame/video/nycaptor.c +++ b/src/mame/video/nycaptor.c @@ -82,7 +82,6 @@ VIDEO_START( nycaptor ) paletteram = auto_malloc(0x200); paletteram_2 = auto_malloc(0x200); tilemap_set_scroll_cols(bg_tilemap,32); - VIDEO_START_CALL(generic); } WRITE8_HANDLER( nycaptor_videoram_w ) diff --git a/src/mame/video/pitnrun.c b/src/mame/video/pitnrun.c index 08e2b11b1ee..a88b6781d47 100644 --- a/src/mame/video/pitnrun.c +++ b/src/mame/video/pitnrun.c @@ -185,7 +185,6 @@ VIDEO_START(pitnrun) tmp_bitmap[2] = auto_bitmap_alloc(128,128,machine->screen[0].format); tmp_bitmap[3] = auto_bitmap_alloc(128,128,machine->screen[0].format); pitnrun_spotlights(); - VIDEO_START_CALL(generic); } static void draw_sprites(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect ) diff --git a/src/mame/video/skychut.c b/src/mame/video/skychut.c index bd46afe0f56..d9f97b60186 100644 --- a/src/mame/video/skychut.c +++ b/src/mame/video/skychut.c @@ -97,8 +97,6 @@ VIDEO_START( iremm10 ) for (i=0;i<32*8;i++) extyoffs[i] = i*8; - VIDEO_START_CALL(generic); - tx_tilemap = tilemap_create(get_tile_info,tilemap_scan,TILEMAP_TYPE_COLORTABLE,8,8,32,32); tilemap_set_transparent_pen(tx_tilemap, 0x07); tilemap_set_scrolldx(tx_tilemap, 0, 62); @@ -120,8 +118,6 @@ VIDEO_START( iremm15 ) decodegfx(machine->gfx[0], state->chargen,0,256); - VIDEO_START_CALL(generic); - tx_tilemap = tilemap_create(get_tile_info,tilemap_scan,TILEMAP_TYPE_PEN,8,8,32,32); tilemap_set_scrolldx(tx_tilemap, 0, 116); tilemap_set_scrolldy(tx_tilemap, 0, 0); diff --git a/src/mame/video/wiz.c b/src/mame/video/wiz.c index 3529d4fedbf..b9f60ee0096 100644 --- a/src/mame/video/wiz.c +++ b/src/mame/video/wiz.c @@ -37,8 +37,6 @@ static int palette_bank; VIDEO_START( wiz ) { - VIDEO_START_CALL(generic); - state_save_register_global_array(char_bank); state_save_register_global_array(palbank); state_save_register_global(flipx);