mirror of
https://github.com/holub/mame
synced 2025-07-07 19:03:29 +03:00
40love.cpp: added screen disable bit, used by Undoukai during transitions [Angelo Salese]
This commit is contained in:
parent
efbac3fa11
commit
bf5f643205
@ -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));
|
||||
|
@ -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;
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user