mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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;
|
||||
re.SetColor( setColor );
|
||||
while ( *s ) {
|
||||
if ( !noColorEscape && Q_IsColorString( s ) ) {
|
||||
if ( Q_IsColorString( s ) ) {
|
||||
if ( !forceColor ) {
|
||||
Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
|
||||
color[3] = setColor[3];
|
||||
re.SetColor( color );
|
||||
}
|
||||
if ( !noColorEscape ) {
|
||||
s += 2;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
SCR_DrawSmallChar( xx, y, *s );
|
||||
xx += SMALLCHAR_WIDTH;
|
||||
s++;
|
||||
|
|
Loading…
Reference in a new issue