mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-23 16:43:58 +08:00
call SetRectEmpty on the dirty rect at the end of SyncUpdate
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user