diff options
author | Kim F. Storm <storm@cua.dk> | 2004-02-13 23:27:38 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2004-02-13 23:27:38 +0000 |
commit | 82b05d81af91a4452fc6e1a0658e8451c88ea999 (patch) | |
tree | ab30f2d26f287d69cf9010eaebafa8a0d1858e6c /src/xterm.c | |
parent | 7e46b7bf2402b2a333f597edf591c9b39c773838 (diff) | |
download | emacs-82b05d81af91a4452fc6e1a0658e8451c88ea999.tar.gz |
(x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
Diffstat (limited to 'src/xterm.c')
-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) 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, |