mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
apple2: update screen on mode-switch only if really switching [Peter Ferrie]
This commit is contained in:
parent
4792c5a8cb
commit
38254b6379
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user