diff options
author | Tim Angus <tim@ngus.net> | 2009-11-02 01:08:39 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:17 +0000 |
commit | 5e4a9e2690bb8929a41a1967b70664e409e0256c (patch) | |
tree | ebd7327c774263a786578ca2b4dee137e12b2587 /src | |
parent | 3651fca8ec8df55a058f1bcdaaa54cbbe780ada5 (diff) |
* Fix colour codes not being propogated across lines in some cases (Rezyn0)
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/ui_shared.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 817f573e..0a416282 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -4395,10 +4395,6 @@ const char *Item_Text_Wrap( const char *text, float scale, float width ) paint[ eol - p ] = '\0'; p = eol; - // Skip leading whitespace on next line and save the - // last color code - SkipWhiteSpace( &p, c ); - if( out[ strlen( out ) - 1 ] == '\n' ) { // The line is deliberately broken, clear the color @@ -4408,6 +4404,10 @@ const char *Item_Text_Wrap( const char *text, float scale, float width ) { // Add a \n if it's not there already Q_strcat( out, sizeof( out ), "\n" ); + + // Skip leading whitespace on next line and save the + // last color code + SkipWhiteSpace( &p, c ); } Q_strcat( out, sizeof( out ), c ); |