aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
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 /src/xterm.c
parentc310aca4a74ce5409602b91466d94a5a4fbccfbb (diff)
downloademacs-82ead4b1427e6804c18ed7acb7c8e99a93059af0.tar.gz
emacs-82ead4b1427e6804c18ed7acb7c8e99a93059af0.zip
(x_draw_glyph_string_box): Fix last_x for full width rows.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c14
1 files changed, 4 insertions, 10 deletions
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);