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/nsfont.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/nsfont.m')
| -rw-r--r-- | src/nsfont.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsfont.m b/src/nsfont.m index bbf991e7d49..d6aa9ac65e5 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -968,7 +968,7 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 968 | } | 968 | } |
| 969 | 969 | ||
| 970 | if (!s->face->stipple) | 970 | if (!s->face->stipple) |
| 971 | [(NS_FACE_BACKGROUND (face) != nil | 971 | [(NS_FACE_BACKGROUND (face) != 0 |
| 972 | ? ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), s->f) | 972 | ? ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), s->f) |
| 973 | : FRAME_BACKGROUND_COLOR (s->f)) set]; | 973 | : FRAME_BACKGROUND_COLOR (s->f)) set]; |
| 974 | else | 974 | else |
| @@ -988,7 +988,7 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 988 | : FRAME_FOREGROUND_COLOR (s->f)); | 988 | : FRAME_FOREGROUND_COLOR (s->f)); |
| 989 | /*PENDING: find another way to pass this */ | 989 | /*PENDING: find another way to pass this */ |
| 990 | bgCol = (ns_tmp_flags != NS_DUMPGLYPH_FOREGROUND ? nil | 990 | bgCol = (ns_tmp_flags != NS_DUMPGLYPH_FOREGROUND ? nil |
| 991 | : (NS_FACE_BACKGROUND (face) != nil | 991 | : (NS_FACE_BACKGROUND (face) != 0 |
| 992 | ? ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), s->f) | 992 | ? ns_lookup_indexed_color (NS_FACE_BACKGROUND (face), s->f) |
| 993 | : FRAME_BACKGROUND_COLOR (s->f))); | 993 | : FRAME_BACKGROUND_COLOR (s->f))); |
| 994 | 994 | ||