From 1553f0f83c7e1e07e23d311af654ce43210b6d36 Mon Sep 17 00:00:00 2001 From: danij Date: Thu, 13 May 2010 00:00:13 +0100 Subject: [PATCH] Changed DOOM/Heretic: As the kills/items/secrets counters are now part of the regular HUD they should be colored by the cfg.hudColor. --- doomsday/plugins/jdoom/src/st_stuff.c | 6 +++--- doomsday/plugins/jheretic/src/st_stuff.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doomsday/plugins/jdoom/src/st_stuff.c b/doomsday/plugins/jdoom/src/st_stuff.c index 9ff665213f..578e4b9609 100644 --- a/doomsday/plugins/jdoom/src/st_stuff.c +++ b/doomsday/plugins/jdoom/src/st_stuff.c @@ -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, @@ -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, @@ -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 { diff --git a/doomsday/plugins/jheretic/src/st_stuff.c b/doomsday/plugins/jheretic/src/st_stuff.c index c2159cbcc9..b9f10dbecb 100644 --- a/doomsday/plugins/jheretic/src/st_stuff.c +++ b/doomsday/plugins/jheretic/src/st_stuff.c @@ -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, @@ -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, @@ -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 {