# HG changeset patch # User Kim F. Storm # Date 1076714858 0 # Node ID 869ca316cddaf7c09a1e0a068e24505821cbd4bb # Parent cf4f19cf90c4ee3f1c4ffcacab7da0aca08b4c6f (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits). diff -r cf4f19cf90c4 -r 869ca316cdda src/xterm.c --- a/src/xterm.c Fri Feb 13 23:10:59 2004 +0000 +++ b/src/xterm.c Fri Feb 13 23:27:38 2004 +0000 @@ -735,11 +735,16 @@ 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,