mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2026-02-01 15:59:39 +00:00
OpenCanopy: Apply intro animation to the BootPicker container
May improve performance with an overfull list. Implicitly fixes a regression where the default entry may end up being cut off.
This commit is contained in:
parent
684ab9cbb8
commit
9733d3ce96
@ -1528,9 +1528,9 @@ InitBpAnimIntro (
|
||||
mBpAnimInfoSinMove.EndValue = 35;
|
||||
//
|
||||
// FIXME: This assumes that only relative changes of X are performed on
|
||||
// mBootPicker between animation initialisation and start.
|
||||
// mBootPickerContainer between animation initialisation and start.
|
||||
//
|
||||
mBootPicker.Hdr.Obj.OffsetX += 35;
|
||||
mBootPickerContainer.Obj.OffsetX += 35;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
@ -1551,14 +1551,17 @@ InternalBootPickerAnimateIntro (
|
||||
|
||||
InterpolVal = GuiGetInterpolatedValue (&mBpAnimInfoSinMove, CurrentTime);
|
||||
DeltaSine = InterpolVal - PrevSine;
|
||||
mBootPicker.Hdr.Obj.OffsetX -= DeltaSine;
|
||||
mBootPickerContainer.Obj.OffsetX -= DeltaSine;
|
||||
PrevSine = InterpolVal;
|
||||
|
||||
//
|
||||
// Draw the full dimension of the inner container to implicitly cover the
|
||||
// scroll buttons with the off-screen entries.
|
||||
//
|
||||
GuiRequestDrawCrop (
|
||||
DrawContext,
|
||||
mBootPickerContainer.Obj.OffsetX + mBootPicker.Hdr.Obj.OffsetX,
|
||||
mBootPickerContainer.Obj.OffsetY + mBootPicker.Hdr.Obj.OffsetY,
|
||||
(UINT32)(mBootPicker.Hdr.Obj.Width + DeltaSine),
|
||||
mBootPicker.Hdr.Obj.Width + DeltaSine,
|
||||
mBootPicker.Hdr.Obj.Height
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user