aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-10-07 07:40:35 +0000
committerYAMAMOTO Mitsuharu2005-10-07 07:40:35 +0000
commitc2ded1b7d5b6ced034c2291d5078416fbc58fafc (patch)
tree63aa71560f94069f1d2d75bab5dfe0529b42ad8c
parenta66678fd3c23322bdebbe285086e9a6d9db1593d (diff)
downloademacs-c2ded1b7d5b6ced034c2291d5078416fbc58fafc.tar.gz
emacs-c2ded1b7d5b6ced034c2291d5078416fbc58fafc.zip
Rename member for_overlaps_p in struct glyph_string to for_overlaps.
-rw-r--r--src/ChangeLog34
-rw-r--r--src/macterm.c12
-rw-r--r--src/w32term.c12
-rw-r--r--src/xterm.c12
4 files changed, 52 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index adb5b204953..deb3ca4fbe9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,37 @@
12005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
4 to for_overlaps. Now occupy 3 bits.
5 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
6 (OVERLAPS_ERASED_CURSOR): New defines.
7 (struct redisplay_interface): Add new OVERLAPS arg to member
8 fix_overlapping_area.
9 (x_fix_overlapping_area): Add new OVERLAPS arg.
10 (get_glyph_string_clip_rects): Add extern.
11
12 * dispnew.c (redraw_overlapping_rows): Call
13 rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
14
15 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
16 for_overlaps.
17 (get_glyph_string_clip_rects): New function created from
18 get_glyph_string_clip_rect. Set clipping rectangles according to
19 the value of for_overlaps. Enable to store multiple clipping
20 rectangles.
21 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
22 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
23 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
24 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
25 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
26 calculating clipping rectangles later. Call
27 x_fix_overlapping_area with new OVERLAPS arg to draw only erased
28 cursor area.
29 (expose_overlaps): Call x_fix_overlapping_area with new
30 OVERLAPS arg to draw overlaps in both preceding and succeeding rows.
31
32 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
33 struct glyph_string to for_overlaps.
34
12005-10-04 Kim F. Storm <storm@cua.dk> 352005-10-04 Kim F. Storm <storm@cua.dk>
2 36
3 * window.c (window_split_tree): New function. 37 * window.c (window_split_tree): New function.
diff --git a/src/macterm.c b/src/macterm.c
index ff4dde4c74b..94a2c4d5434 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -2320,7 +2320,7 @@ x_draw_glyph_string_foreground (s)
2320 XDrawImageString is usually faster than XDrawString.) Always 2320 XDrawImageString is usually faster than XDrawString.) Always
2321 use XDrawImageString when drawing the cursor so that there is 2321 use XDrawImageString when drawing the cursor so that there is
2322 no chance that characters under a box cursor are invisible. */ 2322 no chance that characters under a box cursor are invisible. */
2323 if (s->for_overlaps_p 2323 if (s->for_overlaps
2324 || (s->background_filled_p && s->hl != DRAW_CURSOR)) 2324 || (s->background_filled_p && s->hl != DRAW_CURSOR))
2325#endif 2325#endif
2326 { 2326 {
@@ -3271,7 +3271,7 @@ x_draw_glyph_string (s)
3271 draw a cursor, draw the background of the successor first so that 3271 draw a cursor, draw the background of the successor first so that
3272 S can draw into it. This makes S->next use XDrawString instead 3272 S can draw into it. This makes S->next use XDrawString instead
3273 of XDrawImageString. */ 3273 of XDrawImageString. */
3274 if (s->next && s->right_overhang && !s->for_overlaps_p 3274 if (s->next && s->right_overhang && !s->for_overlaps
3275 && s->next->hl != DRAW_CURSOR) 3275 && s->next->hl != DRAW_CURSOR)
3276 { 3276 {
3277 xassert (s->next->img == NULL); 3277 xassert (s->next->img == NULL);
@@ -3285,7 +3285,7 @@ x_draw_glyph_string (s)
3285 3285
3286 /* Draw relief (if any) in advance for char/composition so that the 3286 /* Draw relief (if any) in advance for char/composition so that the
3287 glyph string can be drawn over it. */ 3287 glyph string can be drawn over it. */
3288 if (!s->for_overlaps_p 3288 if (!s->for_overlaps
3289 && s->face->box != FACE_NO_BOX 3289 && s->face->box != FACE_NO_BOX
3290 && (s->first_glyph->type == CHAR_GLYPH 3290 && (s->first_glyph->type == CHAR_GLYPH
3291 || s->first_glyph->type == COMPOSITE_GLYPH)) 3291 || s->first_glyph->type == COMPOSITE_GLYPH))
@@ -3311,7 +3311,7 @@ x_draw_glyph_string (s)
3311 break; 3311 break;
3312 3312
3313 case CHAR_GLYPH: 3313 case CHAR_GLYPH:
3314 if (s->for_overlaps_p) 3314 if (s->for_overlaps)
3315 s->background_filled_p = 1; 3315 s->background_filled_p = 1;
3316 else 3316 else
3317 x_draw_glyph_string_background (s, 0); 3317 x_draw_glyph_string_background (s, 0);
@@ -3319,7 +3319,7 @@ x_draw_glyph_string (s)
3319 break; 3319 break;
3320 3320
3321 case COMPOSITE_GLYPH: 3321 case COMPOSITE_GLYPH:
3322 if (s->for_overlaps_p || s->gidx > 0) 3322 if (s->for_overlaps || s->gidx > 0)
3323 s->background_filled_p = 1; 3323 s->background_filled_p = 1;
3324 else 3324 else
3325 x_draw_glyph_string_background (s, 1); 3325 x_draw_glyph_string_background (s, 1);
@@ -3330,7 +3330,7 @@ x_draw_glyph_string (s)
3330 abort (); 3330 abort ();
3331 } 3331 }
3332 3332
3333 if (!s->for_overlaps_p) 3333 if (!s->for_overlaps)
3334 { 3334 {
3335 /* Draw underline. */ 3335 /* Draw underline. */
3336 if (s->face->underline_p) 3336 if (s->face->underline_p)
diff --git a/src/w32term.c b/src/w32term.c
index 8a28ac136b8..7e352bfd50d 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1567,7 +1567,7 @@ x_draw_glyph_string_foreground (s)
1567 else 1567 else
1568 x = s->x; 1568 x = s->x;
1569 1569
1570 if (s->for_overlaps_p || (s->background_filled_p && s->hl != DRAW_CURSOR)) 1570 if (s->for_overlaps || (s->background_filled_p && s->hl != DRAW_CURSOR))
1571 SetBkMode (s->hdc, TRANSPARENT); 1571 SetBkMode (s->hdc, TRANSPARENT);
1572 else 1572 else
1573 SetBkMode (s->hdc, OPAQUE); 1573 SetBkMode (s->hdc, OPAQUE);
@@ -2448,7 +2448,7 @@ x_draw_glyph_string (s)
2448 /* If S draws into the background of its successor, draw the 2448 /* If S draws into the background of its successor, draw the
2449 background of the successor first so that S can draw into it. 2449 background of the successor first so that S can draw into it.
2450 This makes S->next use XDrawString instead of XDrawImageString. */ 2450 This makes S->next use XDrawString instead of XDrawImageString. */
2451 if (s->next && s->right_overhang && !s->for_overlaps_p) 2451 if (s->next && s->right_overhang && !s->for_overlaps)
2452 { 2452 {
2453 xassert (s->next->img == NULL); 2453 xassert (s->next->img == NULL);
2454 x_set_glyph_string_gc (s->next); 2454 x_set_glyph_string_gc (s->next);
@@ -2461,7 +2461,7 @@ x_draw_glyph_string (s)
2461 2461
2462 /* Draw relief (if any) in advance for char/composition so that the 2462 /* Draw relief (if any) in advance for char/composition so that the
2463 glyph string can be drawn over it. */ 2463 glyph string can be drawn over it. */
2464 if (!s->for_overlaps_p 2464 if (!s->for_overlaps
2465 && s->face->box != FACE_NO_BOX 2465 && s->face->box != FACE_NO_BOX
2466 && (s->first_glyph->type == CHAR_GLYPH 2466 && (s->first_glyph->type == CHAR_GLYPH
2467 || s->first_glyph->type == COMPOSITE_GLYPH)) 2467 || s->first_glyph->type == COMPOSITE_GLYPH))
@@ -2487,7 +2487,7 @@ x_draw_glyph_string (s)
2487 break; 2487 break;
2488 2488
2489 case CHAR_GLYPH: 2489 case CHAR_GLYPH:
2490 if (s->for_overlaps_p) 2490 if (s->for_overlaps)
2491 s->background_filled_p = 1; 2491 s->background_filled_p = 1;
2492 else 2492 else
2493 x_draw_glyph_string_background (s, 0); 2493 x_draw_glyph_string_background (s, 0);
@@ -2495,7 +2495,7 @@ x_draw_glyph_string (s)
2495 break; 2495 break;
2496 2496
2497 case COMPOSITE_GLYPH: 2497 case COMPOSITE_GLYPH:
2498 if (s->for_overlaps_p || s->gidx > 0) 2498 if (s->for_overlaps || s->gidx > 0)
2499 s->background_filled_p = 1; 2499 s->background_filled_p = 1;
2500 else 2500 else
2501 x_draw_glyph_string_background (s, 1); 2501 x_draw_glyph_string_background (s, 1);
@@ -2506,7 +2506,7 @@ x_draw_glyph_string (s)
2506 abort (); 2506 abort ();
2507 } 2507 }
2508 2508
2509 if (!s->for_overlaps_p) 2509 if (!s->for_overlaps)
2510 { 2510 {
2511 /* Draw underline. */ 2511 /* Draw underline. */
2512 if (s->face->underline_p 2512 if (s->face->underline_p
diff --git a/src/xterm.c b/src/xterm.c
index 1234694de4a..af62cfd0c75 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1299,7 +1299,7 @@ x_draw_glyph_string_foreground (s)
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. */
@@ -2604,7 +2604,7 @@ x_draw_glyph_string (s)
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);
@@ -2617,7 +2617,7 @@ x_draw_glyph_string (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))
@@ -2643,7 +2643,7 @@ x_draw_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);
@@ -2651,7 +2651,7 @@ x_draw_glyph_string (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);
@@ -2662,7 +2662,7 @@ x_draw_glyph_string (s)
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)