|
|
@ -1069,7 +1069,7 @@ int Con_DrawGenericString( int x, int y, const char *string, rgba_t setColor, qb |
|
|
|
Con_UtfProcessChar( 0 ); |
|
|
|
Con_UtfProcessChar( 0 ); |
|
|
|
|
|
|
|
|
|
|
|
// draw the colored text
|
|
|
|
// draw the colored text
|
|
|
|
*(uint *)color = *(uint *)setColor; |
|
|
|
memcpy( color, setColor, sizeof( color )); |
|
|
|
s = string; |
|
|
|
s = string; |
|
|
|
|
|
|
|
|
|
|
|
while( *s ) |
|
|
|
while( *s ) |
|
|
@ -2174,6 +2174,9 @@ void Con_DrawSolidConsole( int lines ) |
|
|
|
int i, x, y; |
|
|
|
int i, x, y; |
|
|
|
float fraction; |
|
|
|
float fraction; |
|
|
|
int start; |
|
|
|
int start; |
|
|
|
|
|
|
|
int stringLen, width = 0, charH; |
|
|
|
|
|
|
|
string curbuild; |
|
|
|
|
|
|
|
byte color[4]; |
|
|
|
|
|
|
|
|
|
|
|
if( lines <= 0 ) return; |
|
|
|
if( lines <= 0 ) return; |
|
|
|
|
|
|
|
|
|
|
@ -2187,16 +2190,9 @@ void Con_DrawSolidConsole( int lines ) |
|
|
|
if( !con.curFont || !host.allow_console ) |
|
|
|
if( !con.curFont || !host.allow_console ) |
|
|
|
return; // nothing to draw
|
|
|
|
return; // nothing to draw
|
|
|
|
|
|
|
|
|
|
|
|
if( host.allow_console ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// draw current version
|
|
|
|
// draw current version
|
|
|
|
int stringLen, width = 0, charH; |
|
|
|
|
|
|
|
string curbuild; |
|
|
|
|
|
|
|
byte color[4]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
memcpy( color, g_color_table[7], sizeof( color )); |
|
|
|
memcpy( color, g_color_table[7], sizeof( color )); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q_snprintf( curbuild, MAX_STRING, "%s %i/%s (%s-%s build %i)", XASH_ENGINE_NAME, PROTOCOL_VERSION, XASH_VERSION, Q_buildos(), Q_buildarch(), Q_buildnum( )); |
|
|
|
Q_snprintf( curbuild, MAX_STRING, "%s %i/%s (%s-%s build %i)", XASH_ENGINE_NAME, PROTOCOL_VERSION, XASH_VERSION, Q_buildos(), Q_buildarch(), Q_buildnum( )); |
|
|
|
|
|
|
|
|
|
|
|
Con_DrawStringLen( curbuild, &stringLen, &charH ); |
|
|
|
Con_DrawStringLen( curbuild, &stringLen, &charH ); |
|
|
@ -2208,7 +2204,6 @@ void Con_DrawSolidConsole( int lines ) |
|
|
|
|
|
|
|
|
|
|
|
for( i = 0; i < stringLen; i++ ) |
|
|
|
for( i = 0; i < stringLen; i++ ) |
|
|
|
width += Con_DrawCharacter( start + width, 0, curbuild[i], color ); |
|
|
|
width += Con_DrawCharacter( start + width, 0, curbuild[i], color ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// draw the text
|
|
|
|
// draw the text
|
|
|
|
if( CON_LINES_COUNT > 0 ) |
|
|
|
if( CON_LINES_COUNT > 0 ) |
|
|
|