comparison src/xterm.c @ 53933:869ca316cdda

(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
author Kim F. Storm <storm@cua.dk>
date Fri, 13 Feb 2004 23:27:38 +0000
parents 57b27e42bf9e
children 03cb01738926 03a73693678e
comparison
equal deleted inserted replaced
53932:cf4f19cf90c4 53933:869ca316cdda
733 XSetForeground (display, face->gc, face->foreground); 733 XSetForeground (display, face->gc, face->foreground);
734 } 734 }
735 735
736 if (p->which) 736 if (p->which)
737 { 737 {
738 unsigned char *bits = p->bits + p->dh; 738 unsigned char *bits;
739 Pixmap pixmap, clipmask = (Pixmap) 0; 739 Pixmap pixmap, clipmask = (Pixmap) 0;
740 int depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f)); 740 int depth = DefaultDepthOfScreen (FRAME_X_SCREEN (f));
741 XGCValues gcv; 741 XGCValues gcv;
742
743 if (p->wd > 8)
744 bits = (unsigned char *)(p->bits + p->dh);
745 else
746 bits = (unsigned char *)p->bits + p->dh;
742 747
743 /* Draw the bitmap. I believe these small pixmaps can be cached 748 /* Draw the bitmap. I believe these small pixmaps can be cached
744 by the server. */ 749 by the server. */
745 pixmap = XCreatePixmapFromBitmapData (display, window, bits, p->wd, p->h, 750 pixmap = XCreatePixmapFromBitmapData (display, window, bits, p->wd, p->h,
746 (p->cursor_p 751 (p->cursor_p