emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 a731c56: Fix NS fringe bitmap drawing bug (bug#33


From: Alan Third
Subject: [Emacs-diffs] emacs-26 a731c56: Fix NS fringe bitmap drawing bug (bug#33864)
Date: Fri, 28 Dec 2018 16:38:52 -0500 (EST)

branch: emacs-26
commit a731c563a1cbb425e143bd0c60905f8aebc4ca1a
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Fix NS fringe bitmap drawing bug (bug#33864)
    
    * src/nsterm.m (ns_draw_fringe_bitmap): Check the rectangle to clear
    correctly.
---
 src/nsterm.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 893bb1b..98a333d 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2919,7 +2919,7 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row 
*row,
   /* Work out the rectangle we will need to clear.  Because we're
      compositing rather than blitting, we need to clear the area under
      the image regardless of anything else.  */
-  if (!p->overlay_p)
+  if (p->bx >= 0 && !p->overlay_p)
     {
       clearRect = NSMakeRect (p->bx, p->by, p->nx, p->ny);
       clearRect = NSUnionRect (clearRect, imageRect);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]