mirror of
https://github.com/holub/mame
synced 2025-06-23 12:58:37 +03:00
add video enable/disable feature in m90 driver
This commit is contained in:
parent
b7880b33fa
commit
4fda816ee1
@ -180,10 +180,12 @@ VIDEO_UPDATE( m90 )
|
|||||||
static int last_pf1,last_pf2;
|
static int last_pf1,last_pf2;
|
||||||
int pf1_base = m90_video_control_data[5] & 0x3;
|
int pf1_base = m90_video_control_data[5] & 0x3;
|
||||||
int pf2_base = m90_video_control_data[6] & 0x3;
|
int pf2_base = m90_video_control_data[6] & 0x3;
|
||||||
int i,pf1_enable,pf2_enable;
|
int i,pf1_enable,pf2_enable, video_enable;
|
||||||
|
|
||||||
|
if (m90_video_control_data[7]&0x04) video_enable=0; else video_enable=1;
|
||||||
if (m90_video_control_data[5]&0x10) pf1_enable=0; else pf1_enable=1;
|
if (m90_video_control_data[5]&0x10) pf1_enable=0; else pf1_enable=1;
|
||||||
if (m90_video_control_data[6]&0x10) pf2_enable=0; else pf2_enable=1;
|
if (m90_video_control_data[6]&0x10) pf2_enable=0; else pf2_enable=1;
|
||||||
|
|
||||||
// tilemap_set_enable(pf1_layer,pf1_enable);
|
// tilemap_set_enable(pf1_layer,pf1_enable);
|
||||||
// tilemap_set_enable(pf2_layer,pf2_enable);
|
// tilemap_set_enable(pf2_layer,pf2_enable);
|
||||||
// tilemap_set_enable(pf1_wide_layer,pf1_enable);
|
// tilemap_set_enable(pf1_wide_layer,pf1_enable);
|
||||||
@ -245,6 +247,7 @@ VIDEO_UPDATE( m90 )
|
|||||||
|
|
||||||
fillbitmap(priority_bitmap,0,cliprect);
|
fillbitmap(priority_bitmap,0,cliprect);
|
||||||
|
|
||||||
|
if (video_enable) {
|
||||||
if (!pf2_enable)
|
if (!pf2_enable)
|
||||||
fillbitmap(bitmap,0,cliprect);
|
fillbitmap(bitmap,0,cliprect);
|
||||||
|
|
||||||
@ -275,6 +278,9 @@ VIDEO_UPDATE( m90 )
|
|||||||
}
|
}
|
||||||
|
|
||||||
draw_sprites(screen->machine,bitmap,cliprect);
|
draw_sprites(screen->machine,bitmap,cliprect);
|
||||||
|
} else {
|
||||||
|
fillbitmap(bitmap,0,cliprect);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user