mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
use SubtractRegion instead of SubtractClipRect
This commit is contained in:
@@ -361,7 +361,7 @@ static void composite_win_znode (CompositorCtxt* ctxt,
|
||||
}
|
||||
|
||||
if (is_top)
|
||||
SubtractClipRect (&ctxt->left_rgn, &rc);
|
||||
SubtractRegion (&ctxt->left_rgn, &ctxt->left_rgn, rgn);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -446,8 +446,6 @@ static void on_dirty_wpp (CompositorCtxt* ctxt)
|
||||
const ZNODEHEADER* znode_hdr;
|
||||
CLIPRECT *crc;
|
||||
|
||||
_DBG_PRINTF("called\n");
|
||||
|
||||
znode_hdr = ServerGetWinZNodeHeader (NULL, 0, NULL, TRUE);
|
||||
if (generate_dirty_region (ctxt, znode_hdr, NULL)) {
|
||||
tile_dirty_region_for_wallpaper (ctxt);
|
||||
|
||||
Reference in New Issue
Block a user