improve transparency without render a bit again
authorroot <root>
Wed, 23 Jan 2008 14:09:21 +0000 (14:09 +0000)
committerroot <root>
Wed, 23 Jan 2008 14:09:21 +0000 (14:09 +0000)
src/rxvtfont.C
src/rxvttoolkit.C

index ee7c443..5abee98 100644 (file)
@@ -1306,6 +1306,7 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
 #ifdef FORCE_UNBUFFERED_XFT
   buffered = false;
 #endif
+  buffered=false;//D
 
   // cut trailing spaces
   while (len && text [len - 1] == ' ')
@@ -1395,7 +1396,7 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
             }
           else
 #endif
-            XftDrawRect (d2, &term->pix_colors[bg < 0 ? Color_bg : bg].c, 0, 0, w, h);
+            XftDrawRect (d2, &term->pix_colors[bg == Color_transparent ? 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);
index da7e2a9..0a26f2a 100644 (file)
@@ -675,7 +675,7 @@ insert_component (unsigned int value, unsigned int mask, unsigned int shift)
 bool
 rxvt_color::alloc (rxvt_screen *screen, const rgba &color)
 {
-  //TODO: only supports 24 bit truecolour
+  //TODO: only supports 24 bit
   int alpha = color.a >= 0xff00 ? 0xffff : color.a;
 
 #if XFT