… | |
… | |
825 | bool |
825 | bool |
826 | rxvt_color::set (rxvt_screen *screen, const char *name) |
826 | rxvt_color::set (rxvt_screen *screen, const char *name) |
827 | { |
827 | { |
828 | rgba c; |
828 | rgba c; |
829 | char eos; |
829 | char eos; |
830 | int skip; |
830 | int skip = 0; |
831 | |
831 | |
832 | c.a = rgba::MAX_CC; |
832 | c.a = rgba::MAX_CC; |
833 | |
833 | |
834 | // parse the nonstandard "[alphapercent]" prefix |
834 | // parse the nonstandard "[alphapercent]" prefix |
835 | if (1 <= sscanf (name, "[%hd]%n", &c.a, &skip)) |
835 | if (1 <= sscanf (name, "[%hd]%n", &c.a, &skip)) |