# HG changeset patch # User Gerd Moellmann # Date 1007211407 0 # Node ID c0edacaaaea84c7bf3f7b9e56bd9d3917504ff15 # Parent 3d527568605a2cf1fce9738dd2a89dd051170335 (x_draw_fringe_bitmap): Always undo clipping. diff -r 3d527568605a -r c0edacaaaea8 src/xterm.c --- 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); }