提交 6698ee9c 编写于 作者: M Marvin Häuser

OpenCanopy: Do not draw children outside their parent's bounds

上级 31c82e3b
......@@ -190,6 +190,14 @@ GuiObjDrawDelegate (
ASSERT (This->Height > OffsetY);
ASSERT (DrawContext != NULL);
if (Width > This->Width - OffsetX) {
Width = This->Width - OffsetX;
}
if (Height > This->Height - OffsetY) {
Height = This->Height - OffsetY;
}
for (
ChildEntry = GetPreviousNode (&This->Children, &This->Children);
!IsNull (&This->Children, ChildEntry);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册