From dea57c2ec45782f62e57d2c9b33fc9fc10eb4278 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 4 Mar 2025 21:09:47 +0800 Subject: [PATCH] ; Fix style and language in src/nsterm.m * 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 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index 745addfc46c..55e248ca1c2 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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)); -- 2.39.5