diff options
| author | Po Lu | 2021-11-08 01:16:29 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-11-08 01:16:29 +0100 |
| commit | 6fa5f0cbbc341a054d0dd41d54addb55748f233f (patch) | |
| tree | 0cda8243621209f2c16455fc8d77cf229dcdfa37 /src | |
| parent | 3dae236eb252452fff7faea0611e4f1798759e08 (diff) | |
| download | emacs-6fa5f0cbbc341a054d0dd41d54addb55748f233f.tar.gz emacs-6fa5f0cbbc341a054d0dd41d54addb55748f233f.zip | |
Set clipping when dumping stretch glyphs in some cases
* src/nsterm.m (ns_draw_glyph_string): Always focus even when dumping
stretch glyphs in s->next (bug#51653).
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 9409697b135..ed0e7a2aae8 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -3991,17 +3991,17 @@ ns_draw_glyph_string (struct glyph_string *s) | |||
| 3991 | width += next->width, next = next->next) | 3991 | width += next->width, next = next->next) |
| 3992 | if (next->first_glyph->type != IMAGE_GLYPH) | 3992 | if (next->first_glyph->type != IMAGE_GLYPH) |
| 3993 | { | 3993 | { |
| 3994 | n = ns_get_glyph_string_clip_rect (s->next, r); | ||
| 3995 | ns_focus (s->f, r, n); | ||
| 3994 | if (next->first_glyph->type != STRETCH_GLYPH) | 3996 | if (next->first_glyph->type != STRETCH_GLYPH) |
| 3995 | { | 3997 | { |
| 3996 | n = ns_get_glyph_string_clip_rect (s->next, r); | ||
| 3997 | ns_focus (s->f, r, n); | ||
| 3998 | ns_maybe_dumpglyphs_background (s->next, 1); | 3998 | ns_maybe_dumpglyphs_background (s->next, 1); |
| 3999 | ns_unfocus (s->f); | ||
| 4000 | } | 3999 | } |
| 4001 | else | 4000 | else |
| 4002 | { | 4001 | { |
| 4003 | ns_dumpglyphs_stretch (s->next); | 4002 | ns_dumpglyphs_stretch (s->next); |
| 4004 | } | 4003 | } |
| 4004 | ns_unfocus (s->f); | ||
| 4005 | next->num_clips = 0; | 4005 | next->num_clips = 0; |
| 4006 | } | 4006 | } |
| 4007 | } | 4007 | } |