aboutsummaryrefslogtreecommitdiffstats
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorJoakim Verona2010-09-10 12:47:11 +0200
committerJoakim Verona2010-09-10 12:47:11 +0200
commit951166f90ffa75e2f2722035d1c5023619bbbfac (patch)
treef7799543476c16b26fc599cc77c1241fe60f5a33 /src/xwidget.c
parenta2080bef8a6de50deaa63e2b9eb53a8cc6308d7a (diff)
downloademacs-951166f90ffa75e2f2722035d1c5023619bbbfac.tar.gz
emacs-951166f90ffa75e2f2722035d1c5023619bbbfac.zip
improve clipping against right window edge a bit
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index ac00ebeff7b..d4882cebbf6 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -386,7 +386,7 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
386 386
387 //calculate clip widht and height, which is used both for the xwidget 387 //calculate clip widht and height, which is used both for the xwidget
388 //and its phantom counterpart 388 //and its phantom counterpart
389 clipx = min (xw->width, WINDOW_RIGHT_EDGE_X (s->w) - x); 389 clipx = min (xw->width, WINDOW_RIGHT_EDGE_X (s->w) - x - WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH(s->w) - WINDOW_RIGHT_FRINGE_WIDTH(s->w));
390 clipy = min (xw->height, 390 clipy = min (xw->height,
391 WINDOW_BOTTOM_EDGE_Y (s->w) - WINDOW_MODE_LINE_HEIGHT (s->w) - y); 391 WINDOW_BOTTOM_EDGE_Y (s->w) - WINDOW_MODE_LINE_HEIGHT (s->w) - y);
392 392