apple2: update screen on mode-switch only if really switching [Peter Ferrie]

This commit is contained in:
Peter Ferrie 2017-08-22 15:45:57 -07:00
parent 4792c5a8cb
commit 38254b6379
2 changed files with 11 additions and 5 deletions

View File

@ -520,9 +520,12 @@ void napple2_state::do_io(address_space &space, int offset)
WRITE_LINE_MEMBER(napple2_state::txt_w)
{
// select graphics or text mode
machine().first_screen()->update_now();
m_video->m_graphics = !state;
if (m_video->m_graphics == state) // avoid flickering from II+ refresh polling
{
// select graphics or text mode
machine().first_screen()->update_now();
m_video->m_graphics = !state;
}
}
WRITE_LINE_MEMBER(napple2_state::mix_w)

View File

@ -1319,8 +1319,11 @@ void apple2e_state::do_io(address_space &space, int offset, bool is_iic)
break;
case 0x50: // graphics mode
machine().first_screen()->update_now();
m_video->m_graphics = true;
if (m_video->m_graphics == false) // avoid flickering from II+ refresh polling
{
machine().first_screen()->update_now();
m_video->m_graphics = true;
}
break;
case 0x51: // text mode