mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
check out of bound of znode rectangle in cb_circle_corners
This commit is contained in:
@@ -4254,6 +4254,13 @@ static void cb_circle_corners (void* context, int x1, int x2, int y)
|
||||
rc.bottom = rc.top + 1;
|
||||
}
|
||||
|
||||
// check out of bound
|
||||
{
|
||||
RECT eff_rc = ctxt->rc;
|
||||
if (!IntersectRect (&rc, &eff_rc, &rc))
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(ctxt->rgn_ops & RGN_OP_FLAG_ABS)) {
|
||||
OffsetRect (&rc, -ctxt->rc.left, -ctxt->rc.top);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user