]> git.eshelyaron.com Git - emacs.git/commitdiff
Synchronize NS fringe bitmap code with X
authorPo Lu <luangruo@yahoo.com>
Fri, 4 Mar 2022 01:06:20 +0000 (09:06 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 4 Mar 2022 01:06:20 +0000 (09:06 +0800)
* nsterm.m (ns_draw_fringe_bitmap): Redefine bitmap if it does
not already exist.

src/nsterm.m

index aba26ef7585f4d125e0e8205df1b19c7dd2a9b7a..639f8781e44b96ed2dc8cf81735ce52ef167d137 100644 (file)
@@ -2916,6 +2916,13 @@ ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
     }
 
   NSBezierPath *bmp = [fringe_bmp objectForKey:[NSNumber numberWithInt:p->which]];
+
+  if (bmp == nil)
+    {
+      gui_define_fringe_bitmap (f, p->which);
+      bmp = [fringe_bmp objectForKey: [NSNumber numberWithInt: p->which]];
+    }
+
   if (bmp)
     {
       NSAffineTransform *transform = [NSAffineTransform transform];