diff options
| author | Joakim Verona | 2010-09-10 12:47:11 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-09-10 12:47:11 +0200 |
| commit | 951166f90ffa75e2f2722035d1c5023619bbbfac (patch) | |
| tree | f7799543476c16b26fc599cc77c1241fe60f5a33 /src | |
| parent | a2080bef8a6de50deaa63e2b9eb53a8cc6308d7a (diff) | |
| download | emacs-951166f90ffa75e2f2722035d1c5023619bbbfac.tar.gz emacs-951166f90ffa75e2f2722035d1c5023619bbbfac.zip | |
improve clipping against right window edge a bit
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwidget.c | 2 |
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 | ||