summaryrefslogtreecommitdiff
path: root/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlib.c')
-rw-r--r--xlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlib.c b/xlib.c
index 14a3a13..5ad8469 100644
--- a/xlib.c
+++ b/xlib.c
@@ -147,8 +147,8 @@ int uudisp_open(struct uudisp *d)
XMatchVisualInfo(p->display, p->screen, 1, StaticGray, &vi);
image = XCreateImage(p->display,
- vi.visual, 1, XYBitmap, (-d->cell_w)&7, g,
- d->cell_w, d->cell_h * 1024, 8, 0);
+ vi.visual, 1, XYBitmap, (-d->cell_w)&7, g, d->cell_w,
+ d->cell_h*(i+1<npages ? 1024 : (nglyphs&1023)), 8, 0);
XPutImage(p->display, p->glyph_cache[i], gc, image,
0, 0, 0, 0, d->cell_w, d->cell_h * 1024);