Skip to content

Commit

Permalink
Changed DOOM/Heretic: As the kills/items/secrets counters are now par…
Browse files Browse the repository at this point in the history
…t of the regular HUD they should be colored by the cfg.hudColor.
  • Loading branch information
danij-deng committed May 12, 2010
1 parent 9824be0 commit 1553f0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -1493,7 +1493,7 @@ void drawKillsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha, false, false, 0);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha, false, false, 0);
}

void drawItemsWidget(int player, float textAlpha, float iconAlpha,
Expand Down Expand Up @@ -1524,7 +1524,7 @@ void drawItemsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha, false, false, 0);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha, false, false, 0);
}

void drawSecretsWidget(int player, float textAlpha, float iconAlpha,
Expand Down Expand Up @@ -1555,7 +1555,7 @@ void drawSecretsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha, false, false, 0);
M_WriteText3(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha, false, false, 0);
}

typedef struct {
Expand Down
6 changes: 3 additions & 3 deletions doomsday/plugins/jheretic/src/st_stuff.c
Expand Up @@ -1418,7 +1418,7 @@ void drawKillsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha);
}

void drawItemsWidget(int player, float textAlpha, float iconAlpha,
Expand Down Expand Up @@ -1450,7 +1450,7 @@ void drawItemsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha);
}

void drawSecretsWidget(int player, float textAlpha, float iconAlpha,
Expand Down Expand Up @@ -1482,7 +1482,7 @@ void drawSecretsWidget(int player, float textAlpha, float iconAlpha,

*drawnHeight = M_StringHeight(buf, GF_FONTA);
*drawnWidth = M_StringWidth(buf, GF_FONTA);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, 1, 1, 1, textAlpha);
M_WriteText2(0, -(*drawnHeight), buf, GF_FONTA, cfg.hudColor[0], cfg.hudColor[1], cfg.hudColor[2], textAlpha);
}

typedef struct {
Expand Down

0 comments on commit 1553f0f

Please sign in to comment.