提交 5079a142 编写于 作者: M Marvin Häuser

OpenCanopy: Use view over draw context screen

上级 daf222e4
......@@ -348,12 +348,12 @@ InternalBootPickerScroll (
// The container is constructed such that it is always fully visible.
//
ASSERT (This->Hdr.Obj.Height <= mBootPickerContainer.Obj.Height);
ASSERT (BaseY + This->Hdr.Obj.Height <= DrawContext->Screen->Height);
ASSERT (BaseY + This->Hdr.Obj.Height <= mBootPickerView.Height);
GuiRequestDraw (
0,
(UINT32) BaseY,
DrawContext->Screen->Width,
mBootPickerView.Width,
This->Hdr.Obj.Height
);
}
......@@ -894,8 +894,8 @@ InternalBootPickerSelectorPtrEvent (
//
ASSERT (BaseX >= 0);
ASSERT (BaseY >= 0);
ASSERT (BaseX + This->Width <= DrawContext->Screen->Width);
ASSERT (BaseY + This->Height <= DrawContext->Screen->Height);
ASSERT (BaseX + This->Width <= mBootPickerView.Width);
ASSERT (BaseY + This->Height <= mBootPickerView.Height);
GuiRequestDraw ((UINT32) BaseX, (UINT32) BaseY, This->Width, This->Height);
}
......@@ -1000,8 +1000,8 @@ InternalBootPickerLeftScrollPtrEvent (
//
ASSERT (BaseX >= 0);
ASSERT (BaseY >= 0);
ASSERT (BaseX + This->Width <= DrawContext->Screen->Width);
ASSERT (BaseY + This->Height <= DrawContext->Screen->Height);
ASSERT (BaseX + This->Width <= mBootPickerView.Width);
ASSERT (BaseY + This->Height <= mBootPickerView.Height);
GuiRequestDraw ((UINT32) BaseX, (UINT32) BaseY, This->Width, This->Height);
}
......@@ -1104,8 +1104,8 @@ InternalBootPickerRightScrollPtrEvent (
//
ASSERT (BaseX >= 0);
ASSERT (BaseY >= 0);
ASSERT (BaseX + This->Width <= DrawContext->Screen->Width);
ASSERT (BaseY + This->Height <= DrawContext->Screen->Height);
ASSERT (BaseX + This->Width <= mBootPickerView.Width);
ASSERT (BaseY + This->Height <= mBootPickerView.Height);
GuiRequestDraw ((UINT32) BaseX, (UINT32) BaseY, This->Width, This->Height);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册