diff src/w32term.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 15087a4cee39
children 1df465faf1df 6d92d69fae33
line wrap: on
line diff
--- a/src/w32term.c	Thu Jan 20 15:21:45 2005 +0000
+++ b/src/w32term.c	Thu Jan 20 15:23:22 2005 +0000
@@ -1921,15 +1921,9 @@
   struct glyph *last_glyph;
   RECT clip_rect;
 
-  last_x = window_box_right (s->w, s->area);
-  if (s->row->full_width_p
-      && !s->w->pseudo_window_p)
-    {
-      last_x += WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH (s->w);
-      if (s->area != RIGHT_MARGIN_AREA
-	  || WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (s->w))
-	last_x += WINDOW_RIGHT_FRINGE_WIDTH (s->w);
-    }
+  last_x = ((s->row->full_width_p && !s->w->pseudo_window_p)
+	    ? WINDOW_RIGHT_EDGE_X (s->w)
+	    : window_box_right (s->w, s->area));
 
   /* The glyph that may have a right box line.  */
   last_glyph = (s->cmp || s->img