diff options
Diffstat (limited to 'src/mame/video/deco16ic.c')
-rw-r--r-- | src/mame/video/deco16ic.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mame/video/deco16ic.c b/src/mame/video/deco16ic.c index 6314abcc009..57e7c28068f 100644 --- a/src/mame/video/deco16ic.c +++ b/src/mame/video/deco16ic.c @@ -551,6 +551,17 @@ void deco16ic_set_scrolldx( device_t *device, int tmap, int size, int dx, int dx } } +/* cninjabl does not enable background layers */ +void deco16ic_set_enable( device_t *device, int tmap, int enable ) +{ + deco16ic_state *deco16ic = get_safe_token(device); + + int shift = (tmap & 1) ? 15 : 7; + deco16ic->pf12_control[5] &= ~(1 << shift); + deco16ic->pf12_control[5] |= (enable & 1) << shift; +} + + /******************************************************************************/ WRITE16_DEVICE_HANDLER( deco16ic_pf1_data_w ) @@ -587,7 +598,6 @@ READ16_DEVICE_HANDLER( deco16ic_pf2_data_r ) return deco16ic->pf2_data[offset]; } - WRITE16_DEVICE_HANDLER( deco16ic_pf_control_w ) { deco16ic_state *deco16ic = get_safe_token(device); |