OpenCanopy: Fix buggy ASSERT

Fixes https://github.com/acidanthera/bugtracker/issues/1439
This commit is contained in:
Marvin Häuser 2021-01-18 11:19:18 +01:00
parent cb6bb3dba5
commit c4b2f06bb2

View File

@ -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;