call SetRectEmpty on the dirty rect at the end of SyncUpdate

This commit is contained in:
Vincent Wei
2021-03-28 16:51:23 +08:00
parent 5f854d75c7
commit c9c55c74bf
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -110,8 +110,10 @@ static BOOL FB_SyncUpdate (_THIS)
if (IsRectEmpty (&this->hidden->dirty_rc))
return FALSE;
if (shadowScreen_BlitToReal (this) == 0)
if (shadowScreen_BlitToReal (this) == 0) {
SetRectEmpty (&this->hidden->dirty_rc);
return TRUE;
}
return FALSE;
}
+2
View File
@@ -298,6 +298,8 @@ static BOOL PCXVFB_SyncUpdate (_THIS)
this->hidden->hdr->dirty_rc_b = this->hidden->dirty_rc.bottom;
this->hidden->hdr->dirty = TRUE;
SetRectEmpty (&this->hidden->dirty_rc);
#ifdef WIN32
win_PCXVFbUnlock ();
#else