reset flag less agressively

This commit is contained in:
Will Scullin 2021-03-14 15:15:54 -07:00
parent afa33a4710
commit 027b113cd4
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD

View File

@ -953,8 +953,9 @@ export class VideoModes2D implements VideoModes {
text(on: boolean) {
const old = textMode;
textMode = on;
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;
if (!on) {
this._flag = 0;
}
if (old != on) {
this._refresh();