fix a bug: always retrun TRUE in subtract_rgn_by_node; change version to 5.0.1

This commit is contained in:
Vincent Wei
2020-05-12 09:17:39 +08:00
parent 18f51a113d
commit a4d532f85e
2 changed files with 10 additions and 5 deletions
+6 -1
View File
@@ -188,7 +188,7 @@ static BOOL subtract_rgn_by_node (PCLIPRGN region, const ZORDERINFO* zi,
else
SubtractClipRect(region, &(node->rc));
return !IsEmptyClipRgn(region);
return TRUE; // !IsEmptyClipRgn(region); We must return TRUE for this callback.
}
#else /* not defined _MGSCHEMA_COMPOSITING */
@@ -505,8 +505,13 @@ static BOOL _cb_update_znode (void* context,
{
const RECT* rc = (RECT*)context;
_DBG_PRINTF ("Checking window (%s), visibility: %s, referred: %s\n", znode->caption,
(znode->flags & ZOF_VISIBLE)? "TRUE" : "FALSE",
(znode->flags & ZOF_IF_REFERENCE)? "TRUE" : "FALSE");
if (znode->flags & ZOF_VISIBLE &&
znode->flags & ZOF_IF_REFERENCE) {
_DBG_PRINTF ("Widnow (%s) will be updated\n", znode->caption);
update_client_window (znode, rc);
znode->flags &= ~ZOF_IF_REFERENCE;
return TRUE;