ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.303 by ayin, Sun Jan 27 22:48:33 2008 UTC vs.
Revision 1.304 by ayin, Wed Feb 6 12:05:35 2008 UTC

801void 801void
802rxvt_term::set_window_color (int idx, const char *color) 802rxvt_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];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines