Commit 82b05d81 authored by Kim F. Storm's avatar Kim F. Storm

(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).

parent 7e46b7bf
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment