changeset 41741:c0edacaaaea8

(x_draw_fringe_bitmap): Always undo clipping.
author Gerd Moellmann <gerd@gnu.org>
date Sat, 01 Dec 2001 12:56:47 +0000
parents 3d527568605a
children a69f01af3b63
files src/xterm.c
diffstat 1 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Dec 01 12:56:21 2001 +0000
+++ b/src/xterm.c	Sat Dec 01 12:56:47 2001 +0000
@@ -907,7 +907,7 @@
 
   /* Clear left fringe if no bitmap to draw or if bitmap doesn't fill
      the fringe.  */
-  b1 = -1;
+  b1 = b2 = -1;
   if (left_p)
     {
       if (wd > FRAME_X_LEFT_FRINGE_WIDTH (f))
@@ -965,16 +965,17 @@
 	XSetForeground (display, face->gc, face->foreground);
     }
 
-  if (which == NO_FRINGE_BITMAP)
-    return;
-
-  /* Draw the bitmap.  I believe these small pixmaps can be cached
-     by the server.  */
-  pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h,
-					face->foreground,
-					face->background, depth);
-  XCopyArea (display, pixmap, window, gc, 0, 0, wd, h, x, y + dy);
-  XFreePixmap (display, pixmap);
+  if (which != NO_FRINGE_BITMAP)
+    {
+      /* Draw the bitmap.  I believe these small pixmaps can be cached
+	 by the server.  */
+      pixmap = XCreatePixmapFromBitmapData (display, window, bits, wd, h,
+					    face->foreground,
+					    face->background, depth);
+      XCopyArea (display, pixmap, window, gc, 0, 0, wd, h, x, y + dy);
+      XFreePixmap (display, pixmap);
+    }
+  
   XSetClipMask (display, gc, None);
 }