From 027b113cd406f9d9a0e87842cc6db4631d9f2738 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sun, 14 Mar 2021 15:15:54 -0700 Subject: [PATCH] reset flag less agressively --- js/canvas.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/canvas.ts b/js/canvas.ts index 0157b47..d5e0f8f 100644 --- a/js/canvas.ts +++ b/js/canvas.ts @@ -953,8 +953,9 @@ export class VideoModes2D implements VideoModes { text(on: boolean) { const old = textMode; textMode = on; - this._flag = 0; - + if (on) { + this._flag = 0; + } if (old != on) { this._refresh(); } @@ -984,7 +985,9 @@ export class VideoModes2D implements VideoModes { hires(on: boolean) { const old = hiresMode; hiresMode = on; - this._flag = 0; + if (!on) { + this._flag = 0; + } if (old != on) { this._refresh();