]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
authorKim F. Storm <storm@cua.dk>
Fri, 13 Feb 2004 23:27:38 +0000 (23:27 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 13 Feb 2004 23:27:38 +0000 (23:27 +0000)
src/xterm.c

index a7eaf1ca5473884a090adee90e8f09bda3d35391..26fb7aa3684c04b019fe453c7c484d525152d297 100644 (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,