Skip to content

Commit

Permalink
OpenCanopy: Fixed icon choice for Apple FW update
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jun 2, 2020
1 parent c047d61 commit 9d5aa26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
OpenCore Changelog
==================

#### v0.6.0
- Fixed sound corruption with AudioDxe
- Fixed icon choice for Apple FW update in OpenCanopy

#### v0.5.9
- Added full HiDPI support in OpenCanopy
- Improved OpenCanopy font rendering by using CoreText
Expand Down
6 changes: 4 additions & 2 deletions Platform/OpenCanopy/Views/BootPicker.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ BootPickerEntriesAdd (
case OC_BOOT_APPLE_OS:
Status = CopyLabel (&VolumeEntry->Label, &GuiContext->Labels[LABEL_APPLE]);
break;
case OC_BOOT_APPLE_FW_UPDATE:
case OC_BOOT_APPLE_RECOVERY:
Status = CopyLabel (&VolumeEntry->Label, &GuiContext->Labels[LABEL_APPLE_RECOVERY]);
break;
Expand Down Expand Up @@ -803,7 +804,7 @@ BootPickerEntriesAdd (
Status = CopyLabel (&VolumeEntry->Label, &GuiContext->Labels[LABEL_GENERIC_HDD]);
break;
default:
DEBUG ((DEBUG_WARN, "OCUI: Entry kind %d unsupported for label", Entry->Type));
DEBUG ((DEBUG_WARN, "OCUI: Entry kind %d unsupported for label\n", Entry->Type));
return EFI_UNSUPPORTED;
}
}
Expand Down Expand Up @@ -855,6 +856,7 @@ BootPickerEntriesAdd (
case OC_BOOT_APPLE_OS:
SuggestedIcon = &GuiContext->Icons[ICON_APPLE][IconTypeIndex];
break;
case OC_BOOT_APPLE_FW_UPDATE:
case OC_BOOT_APPLE_RECOVERY:
SuggestedIcon = &GuiContext->Icons[ICON_APPLE_RECOVERY][IconTypeIndex];
if (SuggestedIcon->Buffer == NULL) {
Expand Down Expand Up @@ -894,7 +896,7 @@ BootPickerEntriesAdd (
SuggestedIcon = &GuiContext->Icons[ICON_GENERIC_HDD][IconTypeIndex];
break;
default:
DEBUG ((DEBUG_WARN, "OCUI: Entry kind %d unsupported for icon", Entry->Type));
DEBUG ((DEBUG_WARN, "OCUI: Entry kind %d unsupported for icon\n", Entry->Type));
return EFI_UNSUPPORTED;
}

Expand Down

0 comments on commit 9d5aa26

Please sign in to comment.