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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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;