View | Details | Raw Unified
Collapse All | Expand All

(-) src/sldisply.c.old (-4 / +4 lines)
 Lines 158-164    Link Here 
static Brush_Info_Type Brush_Table[JMAX_COLORS];
static Brush_Info_Type Brush_Table[JMAX_COLORS];
/* 0 if least significant bit is blue, not red */
/* 0 if least significant bit is blue, not red */
/* static int Is_Fg_BGR = 0; */
static int Is_Fg_BGR = 0;
static int Is_Bg_BGR = 0;
static int Is_Bg_BGR = 0;
#define COLOR_ARG(color, is_bgr) ((is_bgr) ? RGB_to_BGR[(color)&0x7] : (color))
#define COLOR_ARG(color, is_bgr) ((is_bgr) ? RGB_to_BGR[(color)&0x7] : (color))
static SLCONST int RGB_to_BGR[] =
static SLCONST int RGB_to_BGR[] =
 Lines 1394-1400    Link Here 
	     if (fg0 == SLSMG_COLOR_DEFAULT)
	     if (fg0 == SLSMG_COLOR_DEFAULT)
	       tt_write_string (Default_Color_Fg_Str);
	       tt_write_string (Default_Color_Fg_Str);
	     else
	     else
	       tt_printf (Color_Fg_Str, COLOR_ARG(fg0, Is_Bg_BGR), 0);
	       tt_printf (Color_Fg_Str, COLOR_ARG(fg0, Is_Fg_BGR), 0);
	  }
	  }
	if (unknown_attributes
	if (unknown_attributes
 Lines 2554-2566    Link Here 
   if (Color_Fg_Str == NULL)
   if (Color_Fg_Str == NULL)
     {
     {
	Color_Fg_Str = SLtt_tgetstr ("Sf");   /* setf */
	Color_Fg_Str = SLtt_tgetstr ("Sf");   /* setf */
	/* Is_Fg_BGR = (Color_Fg_Str != NULL); */
	Is_Fg_BGR = (Color_Fg_Str != NULL);
     }
     }
   Color_Bg_Str = SLtt_tgetstr ("AB"); /* ANSI setbf */
   Color_Bg_Str = SLtt_tgetstr ("AB"); /* ANSI setbf */
   if (Color_Bg_Str == NULL)
   if (Color_Bg_Str == NULL)
     {
     {
	Color_Bg_Str = SLtt_tgetstr ("Sb");   /* setb */
	Color_Bg_Str = SLtt_tgetstr ("Sb");   /* setb */
	/* Is_Fg_BGR = (Color_Bg_Str != NULL); */
	Is_Bg_BGR = (Color_Bg_Str != NULL);
     }
     }
   if ((Max_Terminfo_Colors = SLtt_tgetnum ("Co")) < 0)
   if ((Max_Terminfo_Colors = SLtt_tgetnum ("Co")) < 0)