Commit 1014b530 authored by Alp Aker's avatar Alp Aker

* nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other terms to...

* nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other terms to determine bitmap color.  (Bug#18437)
parent 30773514
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
......
......@@ -2347,7 +2347,18 @@ Free a pool and temporary objects it refers to (callable from C)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment