mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OpenCanopy: Fix transparency click detection on boot entry icons
This commit is contained in:
parent
eb6b52ba94
commit
02b994933c
@ -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`
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user