diff options
| author | Alan Third | 2018-12-27 16:23:32 +0000 |
|---|---|---|
| committer | Alan Third | 2018-12-28 21:38:11 +0000 |
| commit | a731c563a1cbb425e143bd0c60905f8aebc4ca1a (patch) | |
| tree | a6881654a303f04ff7065c1265eee2ba0fefe9a4 | |
| parent | 0c524597b31ae3a948b4fa70014cd3a56fe1fd79 (diff) | |
| download | emacs-a731c563a1cbb425e143bd0c60905f8aebc4ca1a.tar.gz emacs-a731c563a1cbb425e143bd0c60905f8aebc4ca1a.zip | |
Fix NS fringe bitmap drawing bug (bug#33864)
* src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
correctly.
| -rw-r--r-- | src/nsterm.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 893bb1b4414..98a333d53ad 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -2919,7 +2919,7 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row, | |||
| 2919 | /* Work out the rectangle we will need to clear. Because we're | 2919 | /* Work out the rectangle we will need to clear. Because we're |
| 2920 | compositing rather than blitting, we need to clear the area under | 2920 | compositing rather than blitting, we need to clear the area under |
| 2921 | the image regardless of anything else. */ | 2921 | the image regardless of anything else. */ |
| 2922 | if (!p->overlay_p) | 2922 | if (p->bx >= 0 && !p->overlay_p) |
| 2923 | { | 2923 | { |
| 2924 | clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny); | 2924 | clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny); |
| 2925 | clearRect = NSUnionRect (clearRect, imageRect); | 2925 | clearRect = NSUnionRect (clearRect, imageRect); |