do not recalculate background and draw it twice

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-04-05 17:27:42 +03:00
parent 1c69fccb7a
commit 7b173d7f08
2 changed files with 4 additions and 1 deletions

View File

@ -5230,6 +5230,7 @@ finish:
FreePool (ChosenTheme);
}
PrepareFont();
ThemeX.ClearScreen();
return Status;
}

View File

@ -350,7 +350,9 @@ VOID SwitchToGraphicsAndClear(VOID) //called from MENU_FUNCTION_INIT
SwitchToGraphics();
#if USE_XTHEME
// DBG("clear screen and draw back\n");
ThemeX.ClearScreen();
// ThemeX.ClearScreen();
// egClearScreen(&MenuBackgroundPixel);
ThemeX.Background.DrawWithoutCompose(0,0,0,0);
#else
if (GraphicsScreenDirty) { //Invented in rEFIt 15 years ago
BltClearScreen();