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

index 07bfc57..67f3f30 100644 (file)
@@ -1353,6 +1353,8 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
               Picture dst = 0;
 
               if (bg >= 0 && term->pix_colors[bg].is_opaque ())
+                XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h);
+              else
                 dst = XftDrawPicture (d2);
 
               if (dst)
@@ -1401,8 +1403,8 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
             }
 #endif
 
-          if (bg >= 0 && !back_rendered)
-            XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h);
+          if (!back_rendered)
+            XftDrawRect (d2, &term->pix_colors[bg < 0 ? Color_bg : bg].c, 0, 0, w, h);
 
           XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc);
           XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y);