Support for setting both RGB and named colors on the same line, so the same config can work for multiple term types

This commit is contained in:
ridiculousfish
2012-02-13 09:52:17 -08:00
parent 0a4c72e78b
commit dce189fc6d
5 changed files with 38 additions and 62 deletions

View File

@@ -530,8 +530,8 @@ static void s_set_color( screen_t *s, buffer_t *b, int c )
s_writeb_buffer = b;
unsigned int uc = (unsigned int)c;
set_color( highlight_get_rgb_color( uc & 0xffff, false ),
highlight_get_rgb_color( (uc>>16)&0xffff, true ) );
set_color( highlight_get_color( uc & 0xffff, false ),
highlight_get_color( (uc>>16)&0xffff, true ) );
output_set_writer( writer_old );