mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-26 16:47:40 +01:00
Initialize static variables when menu runs so that values from previos sessions won't be used
This commit is contained in:
parent
d0d27d8e3d
commit
44207c9718
@ -2544,6 +2544,13 @@ UINTN REFIT_MENU_SCREEN::RunMainMenu(IN INTN DefaultSelection, OUT REFIT_ABSTRAC
|
|||||||
INTN DefaultEntryIndex = DefaultSelection;
|
INTN DefaultEntryIndex = DefaultSelection;
|
||||||
INTN SubMenuIndex;
|
INTN SubMenuIndex;
|
||||||
|
|
||||||
|
// initialize static variables when menu runs so that values from previos sessions won't be used
|
||||||
|
OldX = 0;
|
||||||
|
OldY = 0;
|
||||||
|
OldTextWidth = 0;
|
||||||
|
OldRow = 0;
|
||||||
|
OldTimeoutTextWidth = 0;
|
||||||
|
|
||||||
if (AllowGraphicsMode) {
|
if (AllowGraphicsMode) {
|
||||||
Style = &REFIT_MENU_SCREEN::GraphicsMenuStyle;
|
Style = &REFIT_MENU_SCREEN::GraphicsMenuStyle;
|
||||||
if (ThemeX.VerticalLayout) {
|
if (ThemeX.VerticalLayout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user