Mercurial > emacs
changeset 96835:b7b23d50e42d
under NS, recognize HSB,AHSB as synonyms for HSV,AHSV in color specifications
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Sun, 20 Jul 2008 13:38:08 +0000 |
parents | d2e4a0ee9816 |
children | 64fbd5632a28 |
files | src/ChangeLog src/nsterm.m |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sun Jul 20 13:19:56 2008 +0000 +++ b/src/ChangeLog Sun Jul 20 13:38:08 2008 +0000 @@ -1,4 +1,9 @@ -2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com> +2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> + + * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for + HSV,AHSV. + +2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> * Makefile.in (ns_appdir): Fix typo in find command.
--- a/src/nsterm.m Sun Jul 20 13:19:56 2008 +0000 +++ b/src/nsterm.m Sun Jul 20 13:38:08 2008 +0000 @@ -1328,7 +1328,8 @@ of colors found in the file Emacs.clr. Color formats include: - #rrggbb or RGBrrggbb where rr, gg, bb specify red, green and blue in hex - ARGBaarrggbb is similar, with aa being the alpha channel (FF = opaque) - - HSVhhssvv and AHSVaahhssvv are similar for hue, saturation, value + - HSVhhssvv and AHSVaahhssvv (or HSB/AHSB) are similar for hue, saturation, + value; - CMYKccmmyykk is similar for cyan, magenta, yellow, black. */ { NSColor * new = nil; @@ -1376,12 +1377,14 @@ hex = name + 4; color_space = argb; } - else if (!memcmp (name, "HSV", 3) || !memcmp (name, "hsv", 3)) + else if (!memcmp (name, "HSV", 3) || !memcmp (name, "hsv", 3) || + !memcmp (name, "HSB", 3) || !memcmp (name, "hsb", 3)) { hex = name + 3; color_space = hsv; } - else if (!memcmp (name, "AHSV", 4) || !memcmp (name, "ahsv", 4)) + else if (!memcmp (name, "AHSV", 4) || !memcmp (name, "ahsv", 4) || + !memcmp (name, "AHSB", 4) || !memcmp (name, "ahsb", 4)) { hex = name + 4; color_space = ahsv;