-static VOID ComputeSubScreenWindowSize(REFIT_MENU_SCREEN *Screen, IN SCROLL_STATE *State, UINTN *XPos, UINTN *YPos, UINTN *Width, UINTN *Height, UINTN *LineWidth) {
- UINTN i, ItemWidth, HintTop, BannerBottomEdge, TitleWidth, CenteredTop;
+static VOID ComputeSubScreenWindowSize(REFIT_MENU_SCREEN *Screen, IN SCROLL_STATE *State, UINTN *XPos, UINTN *YPos,
+ UINTN *Width, UINTN *Height, UINTN *LineWidth) {
+ UINTN i, ItemWidth, HintTop, BannerBottomEdge, TitleWidth;
+ UINTN FontCellWidth = egGetFontCellWidth();
+ UINTN FontCellHeight = egGetFontHeight();