From c4b2f06bb2b3394f7e6df3dd3df198eda520ad4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= <8659494+mhaeuser@users.noreply.github.com> Date: Mon, 18 Jan 2021 11:19:18 +0100 Subject: [PATCH] OpenCanopy: Fix buggy ASSERT Fixes https://github.com/acidanthera/bugtracker/issues/1439 --- Platform/OpenCanopy/Views/BootPicker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/OpenCanopy/Views/BootPicker.c b/Platform/OpenCanopy/Views/BootPicker.c index 5dc77666..e294b517 100644 --- a/Platform/OpenCanopy/Views/BootPicker.c +++ b/Platform/OpenCanopy/Views/BootPicker.c @@ -301,7 +301,7 @@ InternelBootPickerScrollSelected ( // This is done to achieve the correct offset during initialisation as the // entries may be at "half-steps" due to centering. // - ASSERT ((mBootPickerContainer.Obj.Width + BOOT_ENTRY_SPACE) % ((BOOT_ENTRY_WIDTH + BOOT_ENTRY_SPACE) * Scale) == 0); + ASSERT ((mBootPickerContainer.Obj.Width + BOOT_ENTRY_SPACE * Scale) % ((BOOT_ENTRY_WIDTH + BOOT_ENTRY_SPACE) * Scale) == 0); if (EntryOffsetX < 0) { return -EntryOffsetX;