… | |
… | |
801 | void |
801 | void |
802 | rxvt_term::set_window_color (int idx, const char *color) |
802 | rxvt_term::set_window_color (int idx, const char *color) |
803 | { |
803 | { |
804 | #ifdef XTERM_COLOR_CHANGE |
804 | #ifdef XTERM_COLOR_CHANGE |
805 | rxvt_color xcol; |
805 | rxvt_color xcol; |
806 | int i; |
|
|
807 | |
806 | |
808 | if (color == NULL || *color == '\0') |
807 | if (color == NULL || *color == '\0') |
809 | return; |
808 | return; |
810 | |
809 | |
811 | color = strdup (color); |
810 | color = strdup (color); |
… | |
… | |
813 | rs[Rs_color + idx] = color; |
812 | rs[Rs_color + idx] = color; |
814 | |
813 | |
815 | /* handle color aliases */ |
814 | /* handle color aliases */ |
816 | if (isdigit (*color)) |
815 | if (isdigit (*color)) |
817 | { |
816 | { |
818 | i = atoi (color); |
817 | int i = atoi (color); |
819 | |
818 | |
820 | if (i >= 8 && i <= 15) |
819 | if (i >= 8 && i <= 15) |
821 | { |
820 | { |
822 | /* bright colors */ |
821 | /* bright colors */ |
823 | pix_colors_focused[idx] = pix_colors_focused[minBrightCOLOR + i - 8]; |
822 | pix_colors_focused[idx] = pix_colors_focused[minBrightCOLOR + i - 8]; |