Clear whole screen during refresh (#108)

This commit is contained in:
Will Scullin
2022-05-09 11:51:12 -07:00
committed by GitHub
parent c9a075fff9
commit 702089224f

View File

@@ -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;