1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00

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

This commit is contained in:
Kim F. Storm 2004-02-13 23:27:38 +00:00
parent 7e46b7bf24
commit 82b05d81af

View File

@ -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,