Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactored libcommon's drawMapMetaData, changing the font argument
to an engine font identifier.
  • Loading branch information
danij-deng committed May 24, 2011
1 parent 7aa8645 commit 2c5c752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/plugins/common/src/hu_stuff.c
Expand Up @@ -772,15 +772,15 @@ const char* P_GetGameModeName(void)
return sp;
}

static void drawMapMetaData(float x, float y, int fontIdx, float alpha)
static void drawMapMetaData(float x, float y, fontid_t fontId, float alpha)
{
static const char* unnamed = "unnamed";
const char* lname = P_GetMapNiceName();

if(!lname)
lname = unnamed;

FR_SetFont(FID(fontIdx));
FR_SetFont(fontId);
DGL_Color4f(1, 1, 1, alpha);

// Map name:
Expand Down Expand Up @@ -857,7 +857,7 @@ void HU_DrawScoreBoard(int player)
DGL_Color4f(1, 0, 0, hud->scoreAlpha);
FR_DrawTextFragment2("ranking", x + width / 2, y + LINE_BORDER, DTF_ALIGN_TOP|DTF_ONLY_SHADOW);

drawMapMetaData(x, y + 16, GF_FONTA, hud->scoreAlpha);
drawMapMetaData(x, y + 16, FID(GF_FONTA), hud->scoreAlpha);

drawTable(x, y + 20, width, height - 20, columns, scoreBoard, inCount, hud->scoreAlpha, player);

Expand Down

0 comments on commit 2c5c752

Please sign in to comment.