mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
removed sprite to tile priority, it doesn't exist.
This commit is contained in:
parent
42dc413890
commit
bc3fdbecd7
@ -292,9 +292,22 @@ static int sprite_bank;
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
static void draw_sprites( bitmap_t *bitmap, int priority, const rectangle *visarea )
|
VIDEO_UPDATE( firefox )
|
||||||
{
|
{
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
int sprite;
|
int sprite;
|
||||||
|
const rectangle *visarea = video_screen_get_visible_area( Machine->primary_screen );
|
||||||
|
|
||||||
|
fillbitmap( bitmap, 256, visarea );
|
||||||
|
|
||||||
|
for( y = 0; y < 64; y++ )
|
||||||
|
{
|
||||||
|
for( x = 0; x < 64; x++ )
|
||||||
|
{
|
||||||
|
drawgfx( bitmap, Machine->gfx[ 0 ], tileram[ x + ( y * 64 ) ], 0, 0, 0, x * 8, y * 8, visarea, TRANSPARENCY_PEN, 0 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for( sprite = 0; sprite < 32; sprite++ )
|
for( sprite = 0; sprite < 32; sprite++ )
|
||||||
{
|
{
|
||||||
@ -309,40 +322,15 @@ static void draw_sprites( bitmap_t *bitmap, int priority, const rectangle *visar
|
|||||||
|
|
||||||
for( row = 0; row < 8; row++ )
|
for( row = 0; row < 8; row++ )
|
||||||
{
|
{
|
||||||
int code = sprite_data[ 15 - row ] + ( 256 * ( ( flags >> 6 ) & 3 ) );
|
|
||||||
int color = 2 * ( ( flags >> 2 ) & 0x03 );
|
int color = 2 * ( ( flags >> 2 ) & 0x03 );
|
||||||
int flipx = flags & 0x20;
|
|
||||||
int flipy = flags & 0x10;
|
int flipy = flags & 0x10;
|
||||||
|
int flipx = flags & 0x20;
|
||||||
|
int code = sprite_data[ 15 - row ] + ( 256 * ( ( flags >> 6 ) & 3 ) );
|
||||||
|
|
||||||
if( ( flags & 1 ) == priority )
|
|
||||||
{
|
|
||||||
drawgfx( bitmap, Machine->gfx[ 1 ], code, color, flipx, flipy, x + 16, 500 - y - ( row * 16 ), visarea, TRANSPARENCY_PEN, 0 );
|
drawgfx( bitmap, Machine->gfx[ 1 ], code, color, flipx, flipy, x + 16, 500 - y - ( row * 16 ), visarea, TRANSPARENCY_PEN, 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
VIDEO_UPDATE( firefox )
|
|
||||||
{
|
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
const rectangle *visarea = video_screen_get_visible_area( Machine->primary_screen );
|
|
||||||
|
|
||||||
fillbitmap( bitmap, 256, visarea );
|
|
||||||
|
|
||||||
draw_sprites( bitmap, 1, visarea );
|
|
||||||
|
|
||||||
for( y = 0; y < 64; y++ )
|
|
||||||
{
|
|
||||||
for( x = 0; x < 64; x++ )
|
|
||||||
{
|
|
||||||
drawgfx( bitmap, Machine->gfx[ 0 ], tileram[ x + ( y * 64 ) ], 0, 0, 0, x * 8, y * 8, visarea, TRANSPARENCY_PEN, 0 );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
draw_sprites( bitmap, 0, visarea );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user