From 82b05d81af91a4452fc6e1a0658e8451c88ea999 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 13 Feb 2004 23:27:38 +0000 Subject: [PATCH] (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits). --- src/xterm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index a7eaf1ca547..26fb7aa3684 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -735,11 +735,16 @@ x_draw_fringe_bitmap (w, row, p) if (p->which) { - unsigned char *bits = p->bits + p->dh; + unsigned char *bits; Pixmap pixmap, clipmask = (Pixmap) 0; int depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f)); XGCValues gcv; + if (p->wd > 8) + bits = (unsigned char *)(p->bits + p->dh); + else + bits = (unsigned char *)p->bits + p->dh; + /* Draw the bitmap. I believe these small pixmaps can be cached by the server. */ pixmap = XCreatePixmapFromBitmapData (display, window, bits, p->wd, p->h, -- 2.39.2