… | |
… | |
912 | SET_PIXCOLOR (idx); |
912 | SET_PIXCOLOR (idx); |
913 | goto done; |
913 | goto done; |
914 | } |
914 | } |
915 | } |
915 | } |
916 | |
916 | |
917 | if (!rXParseAllocColor (&xcol, color)) |
917 | if (!set_color (xcol, color)) |
918 | return; |
918 | return; |
919 | |
919 | |
920 | /* XStoreColor (xdisp, display->cmap, XColor*); */ |
920 | /* XStoreColor (xdisp, display->cmap, XColor*); */ |
921 | |
921 | |
922 | /* |
922 | /* |
… | |
… | |
1006 | sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr); |
1006 | sprintf (env_colorfgbg, "COLORFGBG=%s;%s%s", fstr, xpmb, bstr); |
1007 | } |
1007 | } |
1008 | |
1008 | |
1009 | /*----------------------------------------------------------------------*/ |
1009 | /*----------------------------------------------------------------------*/ |
1010 | |
1010 | |
1011 | int |
1011 | bool |
1012 | rxvt_term::rXParseAllocColor (rxvt_color *screen_in_out, const char *colour) |
1012 | rxvt_term::set_color (rxvt_color &color, const char *name) |
1013 | { |
1013 | { |
1014 | if (!screen_in_out->set (this, colour)) |
1014 | if (color.set (this, name)) |
1015 | { |
|
|
1016 | rxvt_warn ("can't get colour '%s', continuing without.\n", colour); |
|
|
1017 | return false; |
|
|
1018 | } |
|
|
1019 | |
|
|
1020 | return true; |
1015 | return true; |
|
|
1016 | |
|
|
1017 | rxvt_warn ("can't get colour '%s', continuing without.\n", name); |
|
|
1018 | return false; |
1021 | } |
1019 | } |
1022 | |
1020 | |
1023 | /* -------------------------------------------------------------------- * |
1021 | /* -------------------------------------------------------------------- * |
1024 | * - WINDOW RESIZING - * |
1022 | * - WINDOW RESIZING - * |
1025 | * -------------------------------------------------------------------- */ |
1023 | * -------------------------------------------------------------------- */ |