From 6664d8b323f609ce2d1add38b93a7368e7b95270 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Mon, 27 Feb 2017 06:34:33 -0500 Subject: [PATCH] graphics error: don't clear HIRES when we enter TEXT mode --- apple/applemmu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apple/applemmu.cpp b/apple/applemmu.cpp index fae52da..c14b212 100644 --- a/apple/applemmu.cpp +++ b/apple/applemmu.cpp @@ -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;