mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-22 11:31:12 +00:00
Show color codes in full length, patch by Amanieu (#4318)
This commit is contained in:
parent
2fc4023e0b
commit
0bdf52e2fb
1 changed files with 5 additions and 3 deletions
|
@ -273,15 +273,17 @@ void SCR_DrawSmallStringExt( int x, int y, const char *string, float *setColor,
|
||||||
xx = x;
|
xx = x;
|
||||||
re.SetColor( setColor );
|
re.SetColor( setColor );
|
||||||
while ( *s ) {
|
while ( *s ) {
|
||||||
if ( !noColorEscape && Q_IsColorString( s ) ) {
|
if ( Q_IsColorString( s ) ) {
|
||||||
if ( !forceColor ) {
|
if ( !forceColor ) {
|
||||||
Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
|
Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
|
||||||
color[3] = setColor[3];
|
color[3] = setColor[3];
|
||||||
re.SetColor( color );
|
re.SetColor( color );
|
||||||
}
|
}
|
||||||
|
if ( !noColorEscape ) {
|
||||||
s += 2;
|
s += 2;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
SCR_DrawSmallChar( xx, y, *s );
|
SCR_DrawSmallChar( xx, y, *s );
|
||||||
xx += SMALLCHAR_WIDTH;
|
xx += SMALLCHAR_WIDTH;
|
||||||
s++;
|
s++;
|
||||||
|
|
Loading…
Reference in a new issue