OpenCanopy: Fix transparency click detection on boot entry icons

This commit is contained in:
MikeBeaton 2021-06-12 10:07:43 +01:00
parent eb6b52ba94
commit 02b994933c
2 changed files with 3 additions and 7 deletions

View File

@ -4,6 +4,7 @@ OpenCore Changelog
- Added `SyncTableIds` quirk to sync modified table OEM identifiers
- Added CPU Info (MSRs) dumping to `SysReport`
- Fixed `PowerTimeoutKernelPanic` on macOS 12
- Fixed transparency click detection on OpenCanopy boot entries
#### v0.7.0
- Fixed NVRAM reset on firmware with write-protected `BootOptionSupport`

View File

@ -707,17 +707,12 @@ InternalBootPickerEntryPtrEvent (
|| Event->Type == GuiPointerPrimaryUp
|| Event->Type == GuiPointerPrimaryDoubleClick);
if (OffsetX < BOOT_ENTRY_ICON_SPACE * DrawContext->Scale
|| OffsetY < BOOT_ENTRY_ICON_SPACE * DrawContext->Scale) {
return This;
}
Entry = BASE_CR (This, GUI_VOLUME_ENTRY, Hdr.Obj);
IsHit = GuiClickableIsHit (
&Entry->EntryIcon,
OffsetX - BOOT_ENTRY_ICON_SPACE * DrawContext->Scale,
OffsetY - BOOT_ENTRY_ICON_SPACE * DrawContext->Scale
OffsetX,
OffsetY
);
if (!IsHit) {
return This;