*** empty log message ***
authorroot <root>
Wed, 23 Jan 2008 10:54:54 +0000 (10:54 +0000)
committerroot <root>
Wed, 23 Jan 2008 10:54:54 +0000 (10:54 +0000)
Changes
src/rxvtfont.C

diff --git a/Changes b/Changes
index ea0f186794170d32267798fe0947d2717d80d8c8..ae6308c188efb3535b1b1688b8d931b505e855c3 100644 (file)
--- a/Changes
+++ b/Changes
@@ -18,6 +18,7 @@ WISH: look into XAddConnectionWatch, does anybody need that?
 DUMB: support tex fonts
 
 DO NOT USE, CURRENTLY TOTALLY BROKEN W.R.T. XFT FONTS
+TODO: document #aarrggbb or (better?) remove
 9.0
        - fix a crash bug where urxvtd would crash when urxvtc was called
           with wrong arguments (I wish debian maintainers in general would
index c58819e9755b51099c7f146f14d6b22ca77d8231..4fa4d92cc58a3ae4541cdcf358fde836389ed7a7 100644 (file)
@@ -238,23 +238,20 @@ rxvt_font::clear_rect (rxvt_drawable &d, int x, int y, int w, int h, int color)
   else if (color >= 0)
     {
 #if XFT
-      bool done = false;
+      Picture dst;
 
 # ifdef HAVE_BG_PIXMAP
-      if (term->bgPixmap.pixmap && color >= 0 && !term->pix_colors[color].is_opaque ())
+      if (term->bgPixmap.pixmap
+          && color >= 0 && !term->pix_colors[color].is_opaque ()
+          && ((Picture dst = XftDrawPicture (d))))
         {
-          Picture dst = XftDrawPicture (d);
+          XClearArea (disp, d, x, y, w, h, false);
 
-          if (dst != 0)
-            {
-              XClearArea (disp, d, x, y, w, h, false);
-              Picture solid_color_pict = XftDrawSrcPicture (d, &term->pix_colors[color].c);
-              XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, x, y, w, h);
-              done = true;
-            }
+          Picture solid_color_pict = XftDrawSrcPicture (d, &term->pix_colors[color].c);
+          XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, x, y, w, h);
         }
+      else
 # endif
-      if (!done)
         XftDrawRect (d, &term->pix_colors[color].c, x, y, w, h);
 
 #else