… | |
… | |
758 | c.a = (c.a << 8) | 0x0ff; |
758 | c.a = (c.a << 8) | 0x0ff; |
759 | } |
759 | } |
760 | // parse the non-standard "rgba:rrrr/gggg/bbbb/aaaa" format |
760 | // parse the non-standard "rgba:rrrr/gggg/bbbb/aaaa" format |
761 | else if (strlen (name) != 4+5*4 || 4 != sscanf (name, "rgba:%4hx/%4hx/%4hx/%4hx%c", &c.r, &c.g, &c.b, &c.a, &eos)) |
761 | else if (strlen (name) != 4+5*4 || 4 != sscanf (name, "rgba:%4hx/%4hx/%4hx/%4hx%c", &c.r, &c.g, &c.b, &c.a, &eos)) |
762 | { |
762 | { |
763 | XColor xc, xc_exact; |
763 | XColor xc; |
764 | |
764 | |
765 | if (XParseColor (screen->dpy, screen->cmap, name, &xc)) |
765 | if (XParseColor (screen->dpy, screen->cmap, name, &xc)) |
766 | { |
766 | { |
767 | c.r = xc.red; |
767 | c.r = xc.red; |
768 | c.g = xc.green; |
768 | c.g = xc.green; |