mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +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)
|
WRITE_LINE_MEMBER(napple2_state::txt_w)
|
||||||
{
|
{
|
||||||
// select graphics or text mode
|
if (m_video->m_graphics == state) // avoid flickering from II+ refresh polling
|
||||||
machine().first_screen()->update_now();
|
{
|
||||||
m_video->m_graphics = !state;
|
// select graphics or text mode
|
||||||
|
machine().first_screen()->update_now();
|
||||||
|
m_video->m_graphics = !state;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(napple2_state::mix_w)
|
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;
|
break;
|
||||||
|
|
||||||
case 0x50: // graphics mode
|
case 0x50: // graphics mode
|
||||||
machine().first_screen()->update_now();
|
if (m_video->m_graphics == false) // avoid flickering from II+ refresh polling
|
||||||
m_video->m_graphics = true;
|
{
|
||||||
|
machine().first_screen()->update_now();
|
||||||
|
m_video->m_graphics = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x51: // text mode
|
case 0x51: // text mode
|
||||||
|
Loading…
Reference in New Issue
Block a user