mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +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;
|
||||
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++ )
|
||||
{
|
||||
@ -309,41 +322,16 @@ static void draw_sprites( bitmap_t *bitmap, int priority, const rectangle *visar
|
||||
|
||||
for( row = 0; row < 8; row++ )
|
||||
{
|
||||
int code = sprite_data[ 15 - row ] + ( 256 * ( ( flags >> 6 ) & 3 ) );
|
||||
int color = 2 * ( ( flags >> 2 ) & 0x03 );
|
||||
int flipx = flags & 0x20;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user