]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix style and language in src/nsterm.m
authorPo Lu <luangruo@yahoo.com>
Tue, 4 Mar 2025 13:09:47 +0000 (21:09 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 21:06:12 +0000 (22:06 +0100)
* src/nsterm.m (ns_maybe_dumpglyphs_background)
(ns_draw_stretch_glyph_string): Fix coding style.  Use American
English spelling.

(cherry picked from commit cd0a8c00a7dbb5a3bff653404a9f970b37c7db78)

src/nsterm.m

index 745addfc46c5db27dfeb79a07459c517de97318d..55e248ca1c2e42f606858a788f1d207c7a660b09 100644 (file)
@@ -3826,8 +3826,8 @@ ns_maybe_dumpglyphs_background (struct glyph_string *s, char force_p)
                          s->height - 2 * box_line_width);
          NSRectFill (r);
          s->background_filled_p = 1;
-         CGImageRef mask =
-           [dpyinfo->bitmaps[face->stipple - 1].img stippleMask];
+         CGImageRef mask
+           [dpyinfo->bitmaps[face->stipple - 1].img stippleMask];
 
          /* This part could possibly be improved, the author is
             unfamiliar with NS/CoreGraphics and isn't sure if it's
@@ -4205,25 +4205,25 @@ ns_draw_stretch_glyph_string (struct glyph_string *s)
 #ifdef NS_IMPL_COCOA
              /* On cocoa emacs the stipple is stored as a mask CGImage.
                 First we want to clear the background with the bg
-                colour */
+                color.  */
              [[NSColor colorWithUnsignedLong:s->face->background] set];
              NSRectFill (NSMakeRect (x, s->y, background_width, s->height));
 
              /* This part could possibly be improved, the author is
                 unfamiliar with NS/CoreGraphics and isn't sure if it's
-                possible to do this with NSImage */
+                possible to do this with NSImage */
              CGImageRef mask = [dpyinfo->bitmaps[s->face->stipple - 1].img stippleMask];
              CGRect bounds = CGRectMake (s->x, s->y, s->background_width, s->height);
 
              /* Checkpoint the graphics state and then focus in on the
-                area we're going to fill */
+                area we're going to fill */
              NSGraphicsContext *ctx = [NSGraphicsContext currentContext];
              [ctx saveGraphicsState];
              CGContextRef context = [ctx CGContext];
-             CGContextClipToRect(context, bounds);
+             CGContextClipToRect (context, bounds);
              CGContextScaleCTM (context, 1, -1);
 
-             /* Stamp the foreground colour using the stipple mask */
+             /* Stamp the foreground colour using the stipple mask */
              [[NSColor colorWithUnsignedLong:s->face->foreground] set];
              CGRect imageSize = CGRectMake (0, 0, CGImageGetWidth (mask),
                                             CGImageGetHeight (mask));