summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_draw.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index 32364783..ab93fd00 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -2489,11 +2489,15 @@ static void CG_DrawLocation( rectDef_t *rect, float scale, int textalign, vec4_t
// need to skip horiz. align if it's too long, but valign must be run either way
if( UI_Text_Width( location, scale, 0 ) < rect->w )
+ {
CG_AlignText( rect, location, scale, 0.0f, 0.0f, textalign, VALIGN_CENTER, &tx, &ty );
+ UI_Text_Paint( tx, ty, scale, color, location, 0, 0, ITEM_TEXTSTYLE_NORMAL );
+ }
else
+ {
CG_AlignText( rect, location, scale, 0.0f, 0.0f, ALIGN_NONE, VALIGN_CENTER, &tx, &ty );
-
- UI_Text_Paint_Limit( &maxX, tx, ty, scale, color, location, 0, 0 );
+ UI_Text_Paint_Limit( &maxX, tx, ty, scale, color, location, 0, 0 );
+ }
trap_R_SetColor( NULL );
}