aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2004-02-13 23:27:38 +0000
committerKim F. Storm <[email protected]>2004-02-13 23:27:38 +0000
commit82b05d81af91a4452fc6e1a0658e8451c88ea999 (patch)
treeab30f2d26f287d69cf9010eaebafa8a0d1858e6c /src
parent7e46b7bf2402b2a333f597edf591c9b39c773838 (diff)
(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a7eaf1ca54..26fb7aa368 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,