aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-12-01 12:56:47 +0000
committerGerd Moellmann2001-12-01 12:56:47 +0000
commitdbdc9702b6c8769c2e516c013eccade58075aebf (patch)
tree223f6be9c8b621a6dfa942989d0d78c89564e9eb
parent7ddb2c166b6f00cdbaeacf9fcaed488906e66382 (diff)
downloademacs-dbdc9702b6c8769c2e516c013eccade58075aebf.tar.gz
emacs-dbdc9702b6c8769c2e516c013eccade58075aebf.zip
(x_draw_fringe_bitmap): Always undo clipping.
-rw-r--r--src/xterm.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 06d9af4ea6d..5bc42fb61b3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -907,7 +907,7 @@ x_draw_fringe_bitmap (w, row, which, left_p)
907 907
908 /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill 908 /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill
909 the fringe. */ 909 the fringe. */
910 b1 = -1; 910 b1 = b2 = -1;
911 if (left_p) 911 if (left_p)
912 { 912 {
913 if (wd > FRAME_X_LEFT_FRINGE_WIDTH (f)) 913 if (wd > FRAME_X_LEFT_FRINGE_WIDTH (f))
@@ -965,16 +965,17 @@ x_draw_fringe_bitmap (w, row, which, left_p)
965 XSetForeground (display, face->gc, face->foreground); 965 XSetForeground (display, face->gc, face->foreground);
966 } 966 }
967 967
968 if (which == NO_FRINGE_BITMAP) 968 if (which != NO_FRINGE_BITMAP)
969 return; 969 {
970 970 /* Draw the bitmap. I believe these small pixmaps can be cached
971 /* Draw the bitmap. I believe these small pixmaps can be cached 971 by the server. */
972 by the server. */ 972 pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h,
973 pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h, 973 face->foreground,
974 face->foreground, 974 face->background, depth);
975 face->background, depth); 975 XCopyArea (display, pixmap, window, gc, 0, 0, wd, h, x, y + dy);
976 XCopyArea (display, pixmap, window, gc, 0, 0, wd, h, x, y + dy); 976 XFreePixmap (display, pixmap);
977 XFreePixmap (display, pixmap); 977 }
978
978 XSetClipMask (display, gc, None); 979 XSetClipMask (display, gc, None);
979} 980}
980 981