mirror of https://github.com/JorjBauer/aiie.git
graphics error: don't clear HIRES when we enter TEXT mode
This commit is contained in:
parent
a90ae0a991
commit
6664d8b323
|
@ -113,8 +113,8 @@ void AppleMMU::write(uint16_t address, uint8_t v)
|
||||||
if (address >= 0x400 &&
|
if (address >= 0x400 &&
|
||||||
address <= 0x7FF) {
|
address <= 0x7FF) {
|
||||||
|
|
||||||
// If it's mixed mode, or if it's not HIRES mode, then force a redraw
|
// If it's text mode, or mixed mode, or lores graphics mode, then update.
|
||||||
if (!(switches & S_HIRES) || (switches & S_MIXED)) {
|
if ((switches & S_TEXT) || (switches & S_MIXED) || (!(switches & S_HIRES))) {
|
||||||
// Force a redraw
|
// Force a redraw
|
||||||
display->modeChange();
|
display->modeChange();
|
||||||
}
|
}
|
||||||
|
@ -393,8 +393,6 @@ uint8_t AppleMMU::readSwitches(uint16_t address)
|
||||||
case 0xC051: // SETTEXT
|
case 0xC051: // SETTEXT
|
||||||
if (!(switches & S_TEXT)) {
|
if (!(switches & S_TEXT)) {
|
||||||
switches |= S_TEXT;
|
switches |= S_TEXT;
|
||||||
// also make sure we're *out* of HIRES mode.
|
|
||||||
switches &= ~S_HIRES;
|
|
||||||
resetDisplay();
|
resetDisplay();
|
||||||
}
|
}
|
||||||
return FLOATING;
|
return FLOATING;
|
||||||
|
|
Loading…
Reference in New Issue