mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OpenCanopy: Fix regression from last commit
Non-overflowing picker may be left-aligned instead of centered.
This commit is contained in:
parent
446ce70f12
commit
52d30eef56
@ -1721,17 +1721,17 @@ BootPickerViewLateInitialize (
|
||||
while (!IsNull (&mBootPicker.Hdr.Obj.Children, ListEntry)) {
|
||||
BootEntry = BASE_CR (ListEntry, GUI_VOLUME_ENTRY, Hdr.Link);
|
||||
if (mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX < 0) {
|
||||
//
|
||||
// Move the first fully visible boot entry to the very left to prevent
|
||||
// cut-off entries. This only applies when entries overflow.
|
||||
//
|
||||
ScrollOffset = -(INT64) FirstPosOffset;
|
||||
break;
|
||||
}
|
||||
|
||||
FirstPosOffset = mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX;
|
||||
ListEntry = ListEntry->BackLink;
|
||||
}
|
||||
//
|
||||
// Move the first fully visible boot entry to the very left to prevent
|
||||
// cut-off entries.
|
||||
//
|
||||
ScrollOffset = -(INT64) FirstPosOffset;
|
||||
}
|
||||
|
||||
mBootPicker.Hdr.Obj.OffsetX += ScrollOffset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user