diff options
| author | Kim F. Storm | 2004-02-13 23:27:38 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-02-13 23:27:38 +0000 |
| commit | 82b05d81af91a4452fc6e1a0658e8451c88ea999 (patch) | |
| tree | ab30f2d26f287d69cf9010eaebafa8a0d1858e6c /src | |
| parent | 7e46b7bf2402b2a333f597edf591c9b39c773838 (diff) | |
| download | emacs-82b05d81af91a4452fc6e1a0658e8451c88ea999.tar.gz emacs-82b05d81af91a4452fc6e1a0658e8451c88ea999.zip | |
(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index a7eaf1ca547..26fb7aa3684 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -735,11 +735,16 @@ x_draw_fringe_bitmap (w, row, p) | |||
| 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 | 742 | ||
| 743 | if (p->wd > 8) | ||
| 744 | bits = (unsigned char *)(p->bits + p->dh); | ||
| 745 | else | ||
| 746 | bits = (unsigned char *)p->bits + p->dh; | ||
| 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, |