diff options
| author | Adrian Robert | 2008-07-19 17:01:36 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-19 17:01:36 +0000 |
| commit | 45d325c4d16ce9dbe00bba3d265c0d7b2d1fa58b (patch) | |
| tree | 0da99608ae8fd8876d68bf041c90198d0ddf2132 /src/nsfns.m | |
| parent | b68e7decb6a7fc8d8ac868d8c5712a8feb379eb4 (diff) | |
| download | emacs-45d325c4d16ce9dbe00bba3d265c0d7b2d1fa58b.tar.gz emacs-45d325c4d16ce9dbe00bba3d265c0d7b2d1fa58b.zip | |
apply fix from Chong Yidong to NS port ns_set_background_color(), and clean up comparison use of result from NS_FACE_BACKGROUND
Diffstat (limited to 'src/nsfns.m')
| -rw-r--r-- | src/nsfns.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsfns.m b/src/nsfns.m index 1752512d2dc..72ac1ece4b3 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -400,7 +400,7 @@ ns_set_background_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 400 | face = FRAME_DEFAULT_FACE (f); | 400 | face = FRAME_DEFAULT_FACE (f); |
| 401 | if (face) | 401 | if (face) |
| 402 | { | 402 | { |
| 403 | col = NS_FACE_BACKGROUND (face); | 403 | col = ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), f); |
| 404 | face->background | 404 | face->background |
| 405 | = (EMACS_UINT) [[col colorWithAlphaComponent: alpha] retain]; | 405 | = (EMACS_UINT) [[col colorWithAlphaComponent: alpha] retain]; |
| 406 | [col release]; | 406 | [col release]; |