Mercurial > emacs
comparison src/macterm.c @ 59655:369714ad80ed
(x_draw_glyph_string_box): Fix last_x for full width rows.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 20 Jan 2005 15:23:22 +0000 |
parents | 2f6084ef9fec |
children | d4cb255b034d 6d92d69fae33 |
comparison
equal
deleted
inserted
replaced
59654:9a3b84758dc1 | 59655:369714ad80ed |
---|---|
2640 int width, left_x, right_x, top_y, bottom_y, last_x, raised_p; | 2640 int width, left_x, right_x, top_y, bottom_y, last_x, raised_p; |
2641 int left_p, right_p; | 2641 int left_p, right_p; |
2642 struct glyph *last_glyph; | 2642 struct glyph *last_glyph; |
2643 Rect clip_rect; | 2643 Rect clip_rect; |
2644 | 2644 |
2645 last_x = window_box_right (s->w, s->area); | 2645 last_x = ((s->row->full_width_p && !s->w->pseudo_window_p) |
2646 if (s->row->full_width_p | 2646 ? WINDOW_RIGHT_EDGE_X (s->w) |
2647 && !s->w->pseudo_window_p) | 2647 : window_box_right (s->w, s->area)); |
2648 { | |
2649 last_x += WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH (s->w); | |
2650 if (s->area != RIGHT_MARGIN_AREA | |
2651 || WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (s->w)) | |
2652 last_x += WINDOW_RIGHT_FRINGE_WIDTH (s->w); | |
2653 } | |
2654 | 2648 |
2655 /* The glyph that may have a right box line. */ | 2649 /* The glyph that may have a right box line. */ |
2656 last_glyph = (s->cmp || s->img | 2650 last_glyph = (s->cmp || s->img |
2657 ? s->first_glyph | 2651 ? s->first_glyph |
2658 : s->first_glyph + s->nchars - 1); | 2652 : s->first_glyph + s->nchars - 1); |