40love.cpp: added screen disable bit, used by Undoukai during transitions [Angelo Salese]

This commit is contained in:
angelosa 2016-01-14 03:20:42 +01:00
parent efbac3fa11
commit bf5f643205
3 changed files with 9 additions and 1 deletions

View File

@ -961,6 +961,7 @@ MACHINE_START_MEMBER(fortyl_state,40love)
save_item(NAME(m_pix1));
save_item(NAME(m_pix2));
save_item(NAME(m_color_bank));
save_item(NAME(m_screen_disable));
/* sound */
save_item(NAME(m_sound_nmi_enable));
save_item(NAME(m_pending_nmi));

View File

@ -43,6 +43,7 @@ public:
bitmap_ind16 *m_pixel_bitmap2;
int m_pixram_sel;
bool m_color_bank;
bool m_screen_disable;
/* sound-related */
int m_sound_nmi_enable;

View File

@ -156,7 +156,7 @@ WRITE8_MEMBER(fortyl_state::fortyl_pixram_sel_w)
bool col_bank = bool(data & 8);
m_pixram_sel = (data & 0x04) >> 2;
// data & 0x20: unknown, set by Undoukai
m_screen_disable = bool(data & 0x20); // Undoukai
if(col_bank != m_color_bank)
{
@ -357,6 +357,12 @@ void fortyl_state::draw_pixram( bitmap_ind16 &bitmap, const rectangle &cliprect
UINT32 fortyl_state::screen_update_fortyl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
if(m_screen_disable == true)
{
bitmap.fill(m_palette->black_pen(), cliprect);
return 0;
}
draw_pixram(bitmap, cliprect);
m_bg_tilemap->set_scrolldy(- m_video_ctrl[1] + 1, - m_video_ctrl[1] - 1 );