graphics error: don't clear HIRES when we enter TEXT mode

This commit is contained in:
Jorj Bauer 2017-02-27 06:34:33 -05:00
parent a90ae0a991
commit 6664d8b323
1 changed files with 2 additions and 4 deletions

View File

@ -113,8 +113,8 @@ void AppleMMU::write(uint16_t address, uint8_t v)
if (address >= 0x400 &&
address <= 0x7FF) {
// If it's mixed mode, or if it's not HIRES mode, then force a redraw
if (!(switches & S_HIRES) || (switches & S_MIXED)) {
// If it's text mode, or mixed mode, or lores graphics mode, then update.
if ((switches & S_TEXT) || (switches & S_MIXED) || (!(switches & S_HIRES))) {
// Force a redraw
display->modeChange();
}
@ -393,8 +393,6 @@ uint8_t AppleMMU::readSwitches(uint16_t address)
case 0xC051: // SETTEXT
if (!(switches & S_TEXT)) {
switches |= S_TEXT;
// also make sure we're *out* of HIRES mode.
switches &= ~S_HIRES;
resetDisplay();
}
return FLOATING;