mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00
- 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'
This commit is contained in:
parent
171ec4b063
commit
cca576b152
@ -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)
|
||||
|
@ -162,8 +162,6 @@ VIDEO_START( exerion )
|
||||
*dst++ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
VIDEO_START_CALL(generic);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 )
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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 )
|
||||
|
@ -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 )
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user