mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
Allow longer titles for menus, they are trimmed according to theme now
This commit is contained in:
parent
aba4619c5e
commit
67e496d6e9
@ -1886,7 +1886,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKextPatches()
|
||||
for (Index = 0; Index < NrKexts; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SWPrintf("%30s", KextPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%90s", KextPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(KextPatchesMenu[Index].MenuItem);
|
||||
@ -2091,7 +2091,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuKernelPatches()
|
||||
for (Index = 0; Index < NrKernels; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SWPrintf("%30s", KernelPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%90s", KernelPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(KernelPatchesMenu[Index].MenuItem);
|
||||
@ -2118,7 +2118,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuBootPatches()
|
||||
for (Index = 0; Index < NrBoots; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.SWPrintf("%30s", BootPatchesMenu[Index].Label);
|
||||
InputBootArgs->Title.SWPrintf("%90s", BootPatchesMenu[Index].Label);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &(BootPatchesMenu[Index].MenuItem);
|
||||
@ -2354,7 +2354,7 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuDSDTPatches() //yyyy
|
||||
for (Index = 0; Index < PatchDsdtNum; Index++) {
|
||||
// InputBootArgs = (__typeof__(InputBootArgs))AllocateZeroPool(sizeof(REFIT_INPUT_DIALOG));
|
||||
InputBootArgs = new REFIT_INPUT_DIALOG;
|
||||
InputBootArgs->Title.takeValueFrom(gSettings.PatchDsdtLabel[Index]);
|
||||
InputBootArgs->Title.SWPrintf("%90s", gSettings.PatchDsdtLabel[Index]);
|
||||
// InputBootArgs->Tag = TAG_INPUT;
|
||||
InputBootArgs->Row = 0xFFFF; //cursor
|
||||
InputBootArgs->Item = &DSDTPatchesMenu[Index];
|
||||
@ -2467,7 +2467,7 @@ VOID CreateMenuProps(REFIT_MENU_SCREEN *SubScreen, DEV_PROPERTY *Prop)
|
||||
SubScreen->AddMenuInfo_f(" value: 0x%08llx", *(UINT64*)Prop->Value);
|
||||
break;
|
||||
case kTagTypeString:
|
||||
SubScreen->AddMenuInfo_f(" value: %30s", Prop->Value);
|
||||
SubScreen->AddMenuInfo_f(" value: %90s", Prop->Value);
|
||||
break;
|
||||
case kTagTypeFalse:
|
||||
SubScreen->AddMenuInfo_f((" value: false"));
|
||||
|
Loading…
Reference in New Issue
Block a user