comparison src/xterm.c @ 39950:df00f7799bb7

(x_draw_glyph_string): Restore clipping after drawing box.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 15 Oct 2001 10:12:08 +0000
parents 538760a4422e
children 579177964efa
comparison
equal deleted inserted replaced
39949:f169b10c8e00 39950:df00f7799bb7
4444 x_draw_glyph_string_background (s->next, 1); 4444 x_draw_glyph_string_background (s->next, 1);
4445 } 4445 }
4446 4446
4447 /* Set up S->gc, set clipping and draw S. */ 4447 /* Set up S->gc, set clipping and draw S. */
4448 x_set_glyph_string_gc (s); 4448 x_set_glyph_string_gc (s);
4449 x_set_glyph_string_clipping (s);
4450 4449
4451 /* Draw relief (if any) in advance for char/composition so that the 4450 /* Draw relief (if any) in advance for char/composition so that the
4452 glyph string can be drawn over it. */ 4451 glyph string can be drawn over it. */
4453 if (!s->for_overlaps_p 4452 if (!s->for_overlaps_p
4454 && s->face->box != FACE_NO_BOX 4453 && s->face->box != FACE_NO_BOX
4455 && (s->first_glyph->type == CHAR_GLYPH 4454 && (s->first_glyph->type == CHAR_GLYPH
4456 || s->first_glyph->type == COMPOSITE_GLYPH)) 4455 || s->first_glyph->type == COMPOSITE_GLYPH))
4457 4456
4458 { 4457 {
4458 x_set_glyph_string_clipping (s);
4459 x_draw_glyph_string_background (s, 1); 4459 x_draw_glyph_string_background (s, 1);
4460 x_draw_glyph_string_box (s); 4460 x_draw_glyph_string_box (s);
4461 x_set_glyph_string_clipping (s);
4461 relief_drawn_p = 1; 4462 relief_drawn_p = 1;
4462 } 4463 }
4464 else
4465 x_set_glyph_string_clipping (s);
4463 4466
4464 switch (s->first_glyph->type) 4467 switch (s->first_glyph->type)
4465 { 4468 {
4466 case IMAGE_GLYPH: 4469 case IMAGE_GLYPH:
4467 x_draw_image_glyph_string (s); 4470 x_draw_image_glyph_string (s);