summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlp Aker <alp.tekin.aker@gmail.com>2014-09-10 13:56:38 -0400
committerAlp Aker <alp.tekin.aker@gmail.com>2014-09-10 13:56:38 -0400
commit1014b530f59b332e9ae53c1d0d90f6074b1fca6c (patch)
treec5774a8e7d655577dff2d5380b8ba4f1aece41fe /src
parent30773514c99e9105b2efa882eafa59a8d7bd3a7c (diff)
downloademacs-1014b530f59b332e9ae53c1d0d90f6074b1fca6c.tar.gz
* nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other terms to determine bitmap color. (Bug#18437)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsterm.m13
2 files changed, 17 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0b3aa8e22ec..5498a07a0da 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-10 Alp Aker <alp.tekin.aker@gmail.com>
+
+ * nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other
+ terms to determine bitmap color. (Bug#18437)
+
2014-09-10 Eli Zaretskii <eliz@gnu.org>
* w32.c (sys_write): Use SAFE_NALLOCA for the NL -> CRLF
diff --git a/src/nsterm.m b/src/nsterm.m
index 47ad28aaa61..dc775fc417a 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2347,7 +2347,18 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
to erase the whole background. */
[ns_lookup_indexed_color(face->background, f) set];
NSRectFill (r);
- [img setXBMColor: ns_lookup_indexed_color(face->foreground, f)];
+
+ {
+ NSColor *bm_color;
+ if (!p->cursor_p)
+ bm_color = ns_lookup_indexed_color(face->foreground, f);
+ else if (p->overlay_p)
+ bm_color = ns_lookup_indexed_color(face->background, f);
+ else
+ bm_color = f->output_data.ns->cursor_color;
+ [img setXBMColor: bm_color];
+ }
+
#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
[img drawInRect: r
fromRect: NSZeroRect