mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Added support for MSB enabled color calculation for sprites in STV. This improves some sprites in Soukyugurentai [Mariusz Wojcieszek]
This commit is contained in:
parent
6f5c23de2b
commit
57f5e4a841
@ -5895,7 +5895,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
||||
case 0x0: if ( pri <= STV_VDP2_SPCCN ) alpha_enabled = 1; break;
|
||||
case 0x1: if ( pri == STV_VDP2_SPCCN ) alpha_enabled = 1; break;
|
||||
case 0x2: if ( pri >= STV_VDP2_SPCCN ) alpha_enabled = 1; break;
|
||||
case 0x3: /* MSBON */ break;
|
||||
case 0x3: alpha_enabled = 2; sprite_shadow = 0; break;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -6055,6 +6055,13 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
||||
};
|
||||
|
||||
ccr = sprite_ccr[ (pix >> sprite_ccrr_shift) & sprite_ccrr_mask ];
|
||||
if ( alpha_enabled == 2 )
|
||||
{
|
||||
if ( ( pix & 0x8000 ) == 0 )
|
||||
{
|
||||
ccr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ( pix & sprite_shadow )
|
||||
{
|
||||
@ -6200,6 +6207,14 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
|
||||
if ( alpha_enabled )
|
||||
ccr = sprite_ccr[ (pix >> sprite_ccrr_shift) & sprite_ccrr_mask ];
|
||||
|
||||
if ( alpha_enabled == 2 )
|
||||
{
|
||||
if ( ( pix & 0x8000 ) == 0 )
|
||||
{
|
||||
ccr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ( pix & sprite_shadow )
|
||||
{
|
||||
if ( pix & ~sprite_shadow )
|
||||
|
Loading…
Reference in New Issue
Block a user