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

View File

@ -797,6 +797,8 @@ export class VideoModesGL implements VideoModes {
const gr = this._grs[this.pageMode - 1]; const gr = this._grs[this.pageMode - 1];
if (this._refreshFlag) { if (this._refreshFlag) {
const { width, height } = screenEmu.C.NTSC_DETAILS.imageSize;
this.context.clearRect(0, 0, width, height);
hgr.refresh(); hgr.refresh();
gr.refresh(); gr.refresh();
this._refreshFlag = false; this._refreshFlag = false;