tweak video7 behaviors

This commit is contained in:
Will Scullin 2021-03-06 18:35:55 -08:00
parent 87b60d4eb4
commit b687dd9ac3
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -773,7 +773,7 @@ export class HiresPage2D implements HiresPage {
this._refreshing = true;
const bb: bank = bank ? 0 : 1;
for (let rr = addr - 1; rr <= addr + 1; rr++) {
const vv = this._buffer[bb][rr & 0x1FFF];
const vv = this._read(rr >> 8, rr & 0xff, bb);
this._write(rr >> 8, rr & 0xff, vv, bb);
}
this._refreshing = false;
@ -953,6 +953,7 @@ export class VideoModes2D implements VideoModes {
text(on: boolean) {
const old = textMode;
textMode = on;
this._flag = 0;
if (old != on) {
this._refresh();
@ -983,9 +984,7 @@ export class VideoModes2D implements VideoModes {
hires(on: boolean) {
const old = hiresMode;
hiresMode = on;
if (!on) {
this._flag = 0;
}
if (old != on) {
this._refresh();