Skip to content

Commit

Permalink
Game Menu: Use a better string for calculating line height
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 4, 2012
1 parent 0cf95a9 commit 27994b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/plugins/common/src/hu_lib.c
Expand Up @@ -781,7 +781,8 @@ static void applyPageLayout(mn_page_t* page)

// Calculate leading/line offset.
FR_SetFont(MNPage_PredefinedFont(page, MENU_FONT1));
lineHeight = FR_CharHeight('Q');
/// \kludge We cannot yet query line height from the font.
lineHeight = FR_TextHeight("WyQ");
lineOffset = MAX_OF(1, .5f + lineHeight * .08f);

Rect_SetXY(page->geometry, 0, 0);
Expand Down

0 comments on commit 27994b0

Please sign in to comment.