aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2005-01-20 15:23:22 +0000
committerKim F. Storm2005-01-20 15:23:22 +0000
commit82ead4b1427e6804c18ed7acb7c8e99a93059af0 (patch)
tree6d3d6658c359340618dbbd1ec5a004f23c4260b9
parentc310aca4a74ce5409602b91466d94a5a4fbccfbb (diff)
downloademacs-82ead4b1427e6804c18ed7acb7c8e99a93059af0.tar.gz
emacs-82ead4b1427e6804c18ed7acb7c8e99a93059af0.zip
(x_draw_glyph_string_box): Fix last_x for full width rows.
-rw-r--r--src/macterm.c12
-rw-r--r--src/w32term.c12
-rw-r--r--src/xterm.c14
3 files changed, 10 insertions, 28 deletions
diff --git a/src/macterm.c b/src/macterm.c
index ebebb129bb8..24aaa52947b 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -2642,15 +2642,9 @@ x_draw_glyph_string_box (s)
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
diff --git a/src/w32term.c b/src/w32term.c
index a0b00d58659..838e1f57222 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -1921,15 +1921,9 @@ x_draw_glyph_string_box (s)
1921 struct glyph *last_glyph; 1921 struct glyph *last_glyph;
1922 RECT clip_rect; 1922 RECT clip_rect;
1923 1923
1924 last_x = window_box_right (s->w, s->area); 1924 last_x = ((s->row->full_width_p && !s->w->pseudo_window_p)
1925 if (s->row->full_width_p 1925 ? WINDOW_RIGHT_EDGE_X (s->w)
1926 && !s->w->pseudo_window_p) 1926 : window_box_right (s->w, s->area));
1927 {
1928 last_x += WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH (s->w);
1929 if (s->area != RIGHT_MARGIN_AREA
1930 || WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (s->w))
1931 last_x += WINDOW_RIGHT_FRINGE_WIDTH (s->w);
1932 }
1933 1927
1934 /* The glyph that may have a right box line. */ 1928 /* The glyph that may have a right box line. */
1935 last_glyph = (s->cmp || s->img 1929 last_glyph = (s->cmp || s->img
diff --git a/src/xterm.c b/src/xterm.c
index 0dafcfb0101..3e54a46c714 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2127,15 +2127,9 @@ x_draw_glyph_string_box (s)
2127 struct glyph *last_glyph; 2127 struct glyph *last_glyph;
2128 XRectangle clip_rect; 2128 XRectangle clip_rect;
2129 2129
2130 last_x = window_box_right (s->w, s->area); 2130 last_x = ((s->row->full_width_p && !s->w->pseudo_window_p)
2131 if (s->row->full_width_p 2131 ? WINDOW_RIGHT_EDGE_X (s->w)
2132 && !s->w->pseudo_window_p) 2132 : window_box_right (s->w, s->area));
2133 {
2134 last_x += WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH (s->w);
2135 if (s->area != RIGHT_MARGIN_AREA
2136 || WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (s->w))
2137 last_x += WINDOW_RIGHT_FRINGE_WIDTH (s->w);
2138 }
2139 2133
2140 /* The glyph that may have a right box line. */ 2134 /* The glyph that may have a right box line. */
2141 last_glyph = (s->cmp || s->img 2135 last_glyph = (s->cmp || s->img
@@ -4329,7 +4323,7 @@ xg_scroll_callback (widget, data)
4329 } 4323 }
4330 4324
4331 if (part >= 0) 4325 if (part >= 0)
4332 { 4326 {
4333 window_being_scrolled = bar->window; 4327 window_being_scrolled = bar->window;
4334 last_scroll_bar_part = part; 4328 last_scroll_bar_part = part;
4335 x_send_scroll_bar_event (bar->window, part, portion, whole); 4329 x_send_scroll_bar_event (bar->window, part, portion, whole);