From b687dd9ac3d96bfadbf60a68a9700f393710ef68 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sat, 6 Mar 2021 18:35:55 -0800 Subject: [PATCH] tweak video7 behaviors --- js/canvas.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/canvas.ts b/js/canvas.ts index 186348a..0157b47 100644 --- a/js/canvas.ts +++ b/js/canvas.ts @@ -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; - } + this._flag = 0; if (old != on) { this._refresh();