diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-06-06 11:23:48 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-06-07 10:37:27 +0200 |
commit | 9fc935f1225f75eb36091060b02a583cf32ff30c (patch) | |
tree | ff19d0500e6f7d4c4a20622b17b87f8ad3ea8e7b /src | |
parent | 788cd6d8b98c0e7750e478ae84e580f29576b5ff (diff) | |
download | emacs-9fc935f1225f75eb36091060b02a583cf32ff30c.tar.gz emacs-9fc935f1225f75eb36091060b02a583cf32ff30c.tar.bz2 emacs-9fc935f1225f75eb36091060b02a583cf32ff30c.zip |
Use 65535 as color-values scale value in the NS backend
* src/nsfns.m (Fxw_color_values): Scale with 65535 instead of 65280, for
uniformity with other backends.
* lisp/faces.el (color-values): Update doc string.
* doc/lispref/frames.texi (Color Names): Update examples.
Diffstat (limited to 'src')
-rw-r--r-- | src/nsfns.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 273fb5f7598..628233ea0dd 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2329,8 +2329,8 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, [[col colorUsingDefaultColorSpace] getRed: &red green: &green blue: &blue alpha: &alpha]; unblock_input (); - return list3i (lrint (red * 65280), lrint (green * 65280), - lrint (blue * 65280)); + return list3i (lrint (red * 65535), lrint (green * 65535), + lrint (blue * 65535)); } |