display wire and IR devices using small_font
This commit is contained in:
parent
5861c27092
commit
d91939f58a
1 changed files with 16 additions and 5 deletions
|
@ -845,6 +845,7 @@ static void _show_key( int hpkey )
|
|||
|
||||
static void _draw_serial_devices_path( void )
|
||||
{
|
||||
int i = 0;
|
||||
char text[ 1024 ] = "";
|
||||
|
||||
if ( config.verbose ) {
|
||||
|
@ -853,19 +854,29 @@ static void _draw_serial_devices_path( void )
|
|||
}
|
||||
|
||||
if ( wire_name ) {
|
||||
strcat( text, "wire: " );
|
||||
strcat( text, wire_name );
|
||||
char wire_name_uppercase[ strlen( wire_name ) ];
|
||||
strcpy( wire_name_uppercase, wire_name );
|
||||
for ( i = 0; i < ( int )strlen( wire_name ); i++ )
|
||||
wire_name_uppercase[ i ] = toupper( wire_name_uppercase[ i ] );
|
||||
|
||||
strcat( text, "WIRE: " );
|
||||
strcat( text, wire_name_uppercase );
|
||||
}
|
||||
if ( ir_name ) {
|
||||
char ir_name_uppercase[ strlen( ir_name ) ];
|
||||
strcpy( ir_name_uppercase, ir_name );
|
||||
for ( i = 0; i < ( int )strlen( ir_name ); i++ )
|
||||
ir_name_uppercase[ i ] = toupper( ir_name_uppercase[ i ] );
|
||||
|
||||
if ( strlen( text ) > 0 )
|
||||
strcat( text, " | " );
|
||||
|
||||
strcat( text, "ir: " );
|
||||
strcat( text, ir_name );
|
||||
strcat( text, "IR: " );
|
||||
strcat( text, ir_name_uppercase );
|
||||
}
|
||||
|
||||
if ( strlen( text ) > 0 )
|
||||
stringRGBA( renderer, 10, 240, text, 255, 255, 255, 255 );
|
||||
write_with_small_font( 10, 250, text, WHITE, DISP_PAD );
|
||||
}
|
||||
|
||||
static void sdl_draw_nibble( int nx, int ny, int val )
|
||||
|
|
Loading…
Reference in a new issue