]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other terms to determine...
authorAlp Aker <alp.tekin.aker@gmail.com>
Wed, 10 Sep 2014 17:56:38 +0000 (13:56 -0400)
committerAlp Aker <alp.tekin.aker@gmail.com>
Wed, 10 Sep 2014 17:56:38 +0000 (13:56 -0400)
src/ChangeLog
src/nsterm.m

index 0b3aa8e22ecd7c8d83cfb33822405f0061b875fe..5498a07a0dac2b9caba08205c0da866fadecb5e9 100644 (file)
@@ -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
index 47ad28aaa617660f09f657a7b2a07909e40c2e10..dc775fc417a3614e7a0274e049f459c6378b9d0f 100644 (file)
@@ -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