From 99db622f525ad67d18aee0f4fedb0b550f9590fe Mon Sep 17 00:00:00 2001 From: MikeBeaton Date: Sun, 24 Jul 2022 13:23:46 +0100 Subject: [PATCH] OpenCanopy: Fix animation linked list behaviour on Canopy restart --- Platform/OpenCanopy/Views/BootPicker.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Platform/OpenCanopy/Views/BootPicker.c b/Platform/OpenCanopy/Views/BootPicker.c index 7661647d..88b507da 100644 --- a/Platform/OpenCanopy/Views/BootPicker.c +++ b/Platform/OpenCanopy/Views/BootPicker.c @@ -136,7 +136,7 @@ InternalBootPickerAnimateLabel ( } STATIC GUI_ANIMATION mBootPickerLabelAnimation = { - INITIALIZE_LIST_HEAD_VARIABLE (mBootPickerLabelAnimation.Link), + { NULL, NULL }, NULL, InternalBootPickerAnimateLabel }; @@ -1831,7 +1831,7 @@ InternalBootPickerAnimateTimeout ( } STATIC GUI_ANIMATION mBootPickerIntroAnimation = { - INITIALIZE_LIST_HEAD_VARIABLE (mBootPickerIntroAnimation.Link), + { NULL, NULL }, NULL, InternalBootPickerAnimateIntro }; @@ -1990,6 +1990,8 @@ BootPickerViewInitialize ( // Conditions for delta function: // + InitializeListHead (&mBootPickerLabelAnimation.Link); + if (!GuiContext->DoneIntroAnimation) { InitBpAnimIntro (DrawContext); InsertHeadList (&DrawContext->Animations, &mBootPickerIntroAnimation.Link); -- GitLab