diff options
| author | Alp Aker | 2014-09-10 13:56:38 -0400 |
|---|---|---|
| committer | Alp Aker | 2014-09-10 13:56:38 -0400 |
| commit | 1014b530f59b332e9ae53c1d0d90f6074b1fca6c (patch) | |
| tree | c5774a8e7d655577dff2d5380b8ba4f1aece41fe /src | |
| parent | 30773514c99e9105b2efa882eafa59a8d7bd3a7c (diff) | |
| download | emacs-1014b530f59b332e9ae53c1d0d90f6074b1fca6c.tar.gz emacs-1014b530f59b332e9ae53c1d0d90f6074b1fca6c.zip | |
* 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/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsterm.m | 13 |
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 @@ | |||
| 1 | 2014-09-10 Alp Aker <alp.tekin.aker@gmail.com> | ||
| 2 | |||
| 3 | * nsterm.m (ns_draw_fringe_bitmap): Use the same logic as other | ||
| 4 | terms to determine bitmap color. (Bug#18437) | ||
| 5 | |||
| 1 | 2014-09-10 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-09-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * w32.c (sys_write): Use SAFE_NALLOCA for the NL -> CRLF | 8 | * 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, | |||
| 2347 | to erase the whole background. */ | 2347 | to erase the whole background. */ |
| 2348 | [ns_lookup_indexed_color(face->background, f) set]; | 2348 | [ns_lookup_indexed_color(face->background, f) set]; |
| 2349 | NSRectFill (r); | 2349 | NSRectFill (r); |
| 2350 | [img setXBMColor: ns_lookup_indexed_color(face->foreground, f)]; | 2350 | |
| 2351 | { | ||
| 2352 | NSColor *bm_color; | ||
| 2353 | if (!p->cursor_p) | ||
| 2354 | bm_color = ns_lookup_indexed_color(face->foreground, f); | ||
| 2355 | else if (p->overlay_p) | ||
| 2356 | bm_color = ns_lookup_indexed_color(face->background, f); | ||
| 2357 | else | ||
| 2358 | bm_color = f->output_data.ns->cursor_color; | ||
| 2359 | [img setXBMColor: bm_color]; | ||
| 2360 | } | ||
| 2361 | |||
| 2351 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 | 2362 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 |
| 2352 | [img drawInRect: r | 2363 | [img drawInRect: r |
| 2353 | fromRect: NSZeroRect | 2364 | fromRect: NSZeroRect |