diff options
| author | Po Lu | 2025-03-04 21:09:47 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-04 21:09:47 +0800 |
| commit | cd0a8c00a7dbb5a3bff653404a9f970b37c7db78 (patch) | |
| tree | 7d09bc0574f175af3da1b47c65e6d0c674cb6672 | |
| parent | 9cbbdcee132588a11dc03c3da371176aaa13927c (diff) | |
| download | emacs-cd0a8c00a7dbb5a3bff653404a9f970b37c7db78.tar.gz emacs-cd0a8c00a7dbb5a3bff653404a9f970b37c7db78.zip | |
; 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.
| -rw-r--r-- | src/nsterm.m | 14 |
1 files 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) | |||
| 3826 | s->height - 2 * box_line_width); | 3826 | s->height - 2 * box_line_width); |
| 3827 | NSRectFill (r); | 3827 | NSRectFill (r); |
| 3828 | s->background_filled_p = 1; | 3828 | s->background_filled_p = 1; |
| 3829 | CGImageRef mask = | 3829 | CGImageRef mask |
| 3830 | [dpyinfo->bitmaps[face->stipple - 1].img stippleMask]; | 3830 | = [dpyinfo->bitmaps[face->stipple - 1].img stippleMask]; |
| 3831 | 3831 | ||
| 3832 | /* This part could possibly be improved, the author is | 3832 | /* This part could possibly be improved, the author is |
| 3833 | unfamiliar with NS/CoreGraphics and isn't sure if it's | 3833 | unfamiliar with NS/CoreGraphics and isn't sure if it's |
| @@ -4205,25 +4205,25 @@ ns_draw_stretch_glyph_string (struct glyph_string *s) | |||
| 4205 | #ifdef NS_IMPL_COCOA | 4205 | #ifdef NS_IMPL_COCOA |
| 4206 | /* On cocoa emacs the stipple is stored as a mask CGImage. | 4206 | /* On cocoa emacs the stipple is stored as a mask CGImage. |
| 4207 | First we want to clear the background with the bg | 4207 | First we want to clear the background with the bg |
| 4208 | colour */ | 4208 | color. */ |
| 4209 | [[NSColor colorWithUnsignedLong:s->face->background] set]; | 4209 | [[NSColor colorWithUnsignedLong:s->face->background] set]; |
| 4210 | NSRectFill (NSMakeRect (x, s->y, background_width, s->height)); | 4210 | NSRectFill (NSMakeRect (x, s->y, background_width, s->height)); |
| 4211 | 4211 | ||
| 4212 | /* This part could possibly be improved, the author is | 4212 | /* This part could possibly be improved, the author is |
| 4213 | unfamiliar with NS/CoreGraphics and isn't sure if it's | 4213 | unfamiliar with NS/CoreGraphics and isn't sure if it's |
| 4214 | possible to do this with NSImage */ | 4214 | possible to do this with NSImage. */ |
| 4215 | CGImageRef mask = [dpyinfo->bitmaps[s->face->stipple - 1].img stippleMask]; | 4215 | CGImageRef mask = [dpyinfo->bitmaps[s->face->stipple - 1].img stippleMask]; |
| 4216 | CGRect bounds = CGRectMake (s->x, s->y, s->background_width, s->height); | 4216 | CGRect bounds = CGRectMake (s->x, s->y, s->background_width, s->height); |
| 4217 | 4217 | ||
| 4218 | /* Checkpoint the graphics state and then focus in on the | 4218 | /* Checkpoint the graphics state and then focus in on the |
| 4219 | area we're going to fill */ | 4219 | area we're going to fill. */ |
| 4220 | NSGraphicsContext *ctx = [NSGraphicsContext currentContext]; | 4220 | NSGraphicsContext *ctx = [NSGraphicsContext currentContext]; |
| 4221 | [ctx saveGraphicsState]; | 4221 | [ctx saveGraphicsState]; |
| 4222 | CGContextRef context = [ctx CGContext]; | 4222 | CGContextRef context = [ctx CGContext]; |
| 4223 | CGContextClipToRect(context, bounds); | 4223 | CGContextClipToRect (context, bounds); |
| 4224 | CGContextScaleCTM (context, 1, -1); | 4224 | CGContextScaleCTM (context, 1, -1); |
| 4225 | 4225 | ||
| 4226 | /* Stamp the foreground colour using the stipple mask */ | 4226 | /* Stamp the foreground colour using the stipple mask. */ |
| 4227 | [[NSColor colorWithUnsignedLong:s->face->foreground] set]; | 4227 | [[NSColor colorWithUnsignedLong:s->face->foreground] set]; |
| 4228 | CGRect imageSize = CGRectMake (0, 0, CGImageGetWidth (mask), | 4228 | CGRect imageSize = CGRectMake (0, 0, CGImageGetWidth (mask), |
| 4229 | CGImageGetHeight (mask)); | 4229 | CGImageGetHeight (mask)); |