From 702089224f37ace6486cca6e08f431ad6e4fa742 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Mon, 9 May 2022 11:51:12 -0700 Subject: [PATCH] Clear whole screen during refresh (#108) --- js/gl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/gl.ts b/js/gl.ts index 03fde8c..4596438 100644 --- a/js/gl.ts +++ b/js/gl.ts @@ -797,6 +797,8 @@ export class VideoModesGL implements VideoModes { const gr = this._grs[this.pageMode - 1]; if (this._refreshFlag) { + const { width, height } = screenEmu.C.NTSC_DETAILS.imageSize; + this.context.clearRect(0, 0, width, height); hgr.refresh(); gr.refresh(); this._refreshFlag = false;