mirror of
https://github.com/holub/mame
synced 2025-04-23 17:00:53 +03:00
mainevt.cpp: fixed sprite shadows for Devastators [Angelo Salese]
This commit is contained in:
parent
8cad75c00f
commit
3169eb94c5
@ -65,6 +65,9 @@ K051960_CB_MEMBER(mainevt_state::mainevt_sprite_callback)
|
||||
K051960_CB_MEMBER(mainevt_state::dv_sprite_callback)
|
||||
{
|
||||
enum { sprite_colorbase = 128 / 16 };
|
||||
|
||||
// enable shadow if upper bits are 0
|
||||
*shadow = ((*color & 0xe0) >> 5) == 0;
|
||||
|
||||
/* TODO: the priority/shadow handling (bits 5-7) seems to be quite complex (see PROM) */
|
||||
*color = sprite_colorbase + (*color & 0x07);
|
||||
|
Loading…
Reference in New Issue
Block a user