Mercurial > emacs
comparison src/xterm.c @ 65892:41fc0bf568be
Rename member for_overlaps_p in struct glyph_string to for_overlaps.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Fri, 07 Oct 2005 07:40:18 +0000 |
parents | 375ab086d366 |
children | 42e5365826f1 |
comparison
equal
deleted
inserted
replaced
65891:d0d10499b708 | 65892:41fc0bf568be |
---|---|
1297 /* Draw text with XDrawString if background has already been | 1297 /* Draw text with XDrawString if background has already been |
1298 filled. Otherwise, use XDrawImageString. (Note that | 1298 filled. Otherwise, use XDrawImageString. (Note that |
1299 XDrawImageString is usually faster than XDrawString.) Always | 1299 XDrawImageString is usually faster than XDrawString.) Always |
1300 use XDrawImageString when drawing the cursor so that there is | 1300 use XDrawImageString when drawing the cursor so that there is |
1301 no chance that characters under a box cursor are invisible. */ | 1301 no chance that characters under a box cursor are invisible. */ |
1302 if (s->for_overlaps_p | 1302 if (s->for_overlaps |
1303 || (s->background_filled_p && s->hl != DRAW_CURSOR)) | 1303 || (s->background_filled_p && s->hl != DRAW_CURSOR)) |
1304 { | 1304 { |
1305 /* Draw characters with 16-bit or 8-bit functions. */ | 1305 /* Draw characters with 16-bit or 8-bit functions. */ |
1306 if (s->two_byte_p) | 1306 if (s->two_byte_p) |
1307 XDrawString16 (s->display, s->window, s->gc, x, | 1307 XDrawString16 (s->display, s->window, s->gc, x, |
2602 int relief_drawn_p = 0; | 2602 int relief_drawn_p = 0; |
2603 | 2603 |
2604 /* If S draws into the background of its successor, draw the | 2604 /* If S draws into the background of its successor, draw the |
2605 background of the successor first so that S can draw into it. | 2605 background of the successor first so that S can draw into it. |
2606 This makes S->next use XDrawString instead of XDrawImageString. */ | 2606 This makes S->next use XDrawString instead of XDrawImageString. */ |
2607 if (s->next && s->right_overhang && !s->for_overlaps_p) | 2607 if (s->next && s->right_overhang && !s->for_overlaps) |
2608 { | 2608 { |
2609 xassert (s->next->img == NULL); | 2609 xassert (s->next->img == NULL); |
2610 x_set_glyph_string_gc (s->next); | 2610 x_set_glyph_string_gc (s->next); |
2611 x_set_glyph_string_clipping (s->next); | 2611 x_set_glyph_string_clipping (s->next); |
2612 x_draw_glyph_string_background (s->next, 1); | 2612 x_draw_glyph_string_background (s->next, 1); |
2615 /* Set up S->gc, set clipping and draw S. */ | 2615 /* Set up S->gc, set clipping and draw S. */ |
2616 x_set_glyph_string_gc (s); | 2616 x_set_glyph_string_gc (s); |
2617 | 2617 |
2618 /* Draw relief (if any) in advance for char/composition so that the | 2618 /* Draw relief (if any) in advance for char/composition so that the |
2619 glyph string can be drawn over it. */ | 2619 glyph string can be drawn over it. */ |
2620 if (!s->for_overlaps_p | 2620 if (!s->for_overlaps |
2621 && s->face->box != FACE_NO_BOX | 2621 && s->face->box != FACE_NO_BOX |
2622 && (s->first_glyph->type == CHAR_GLYPH | 2622 && (s->first_glyph->type == CHAR_GLYPH |
2623 || s->first_glyph->type == COMPOSITE_GLYPH)) | 2623 || s->first_glyph->type == COMPOSITE_GLYPH)) |
2624 | 2624 |
2625 { | 2625 { |
2641 case STRETCH_GLYPH: | 2641 case STRETCH_GLYPH: |
2642 x_draw_stretch_glyph_string (s); | 2642 x_draw_stretch_glyph_string (s); |
2643 break; | 2643 break; |
2644 | 2644 |
2645 case CHAR_GLYPH: | 2645 case CHAR_GLYPH: |
2646 if (s->for_overlaps_p) | 2646 if (s->for_overlaps) |
2647 s->background_filled_p = 1; | 2647 s->background_filled_p = 1; |
2648 else | 2648 else |
2649 x_draw_glyph_string_background (s, 0); | 2649 x_draw_glyph_string_background (s, 0); |
2650 x_draw_glyph_string_foreground (s); | 2650 x_draw_glyph_string_foreground (s); |
2651 break; | 2651 break; |
2652 | 2652 |
2653 case COMPOSITE_GLYPH: | 2653 case COMPOSITE_GLYPH: |
2654 if (s->for_overlaps_p || s->gidx > 0) | 2654 if (s->for_overlaps || s->gidx > 0) |
2655 s->background_filled_p = 1; | 2655 s->background_filled_p = 1; |
2656 else | 2656 else |
2657 x_draw_glyph_string_background (s, 1); | 2657 x_draw_glyph_string_background (s, 1); |
2658 x_draw_composite_glyph_string_foreground (s); | 2658 x_draw_composite_glyph_string_foreground (s); |
2659 break; | 2659 break; |
2660 | 2660 |
2661 default: | 2661 default: |
2662 abort (); | 2662 abort (); |
2663 } | 2663 } |
2664 | 2664 |
2665 if (!s->for_overlaps_p) | 2665 if (!s->for_overlaps) |
2666 { | 2666 { |
2667 /* Draw underline. */ | 2667 /* Draw underline. */ |
2668 if (s->face->underline_p) | 2668 if (s->face->underline_p) |
2669 { | 2669 { |
2670 unsigned long tem, h; | 2670 unsigned long tem, h; |