*** empty log message ***
authorroot <root>
Sat, 4 Mar 2006 18:42:15 +0000 (18:42 +0000)
committerroot <root>
Sat, 4 Mar 2006 18:42:15 +0000 (18:42 +0000)
Changes
src/feature.h
src/rxvtfont.C

diff --git a/Changes b/Changes
index 855a94f4d8c498a335d75dffbc6a5be49ab8dfc2..9b3cac78a62223e933963a1953b90b962fa1c608 100644 (file)
--- a/Changes
+++ b/Changes
@@ -17,6 +17,8 @@ WISH: anyevent mouse notification / manage MotionMask better.
 WISH: http://www120.pair.com/mccarthy/nextstep/intro.htmld/Workspace.html is the correct nextstep look.
 DUMB: support tex fonts
 
+       - add FORCE_UNBUFFERED_XFT define to features.h.
+
 7.7  Tue Feb 21 12:32:49 CET 2006
        - use double-buffered drawing (xft fonts only). On many driver/hardware
           combination this actually increases xft drawing speed, at the expense
index 94240d7ce1f6ce4e999508ffba6c334f7d78d606..5acf446ff0724295f5c0111bc8d0009e1d208432 100644 (file)
  * report bugs, too!), but don't _expect_ them to work.
  */
 
+/*
+ * Forcefully disable double-buffering for xft. On some card/driver combination
+ * this slightly decreases performance, on most it greatly helps it.
+ * The slowdown is small, so it * should normally be enabled.
+ */
+/* #define FORCE_UNBUFFERED_XFT */
+
 /*
  * The cursor blink interval, in seconds.
  */
index a894ac271a3223254347da717af1e57e4d223ba7..28c17100dcd85e2e47bf96a6b58629805d5d55d0 100644 (file)
@@ -1277,11 +1277,13 @@ rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
   int h = term->fheight;
 
   bool buffered = 0
-#if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
+#ifndef FORCE_UNBUFFERED_XFT
+# if defined(XPM_BACKGROUND) || defined(TRANSPARENT)
                   || !term->am_transparent        // we aren't transparent
                   || term->am_pixmap_trans        // we have a pixmap
-#endif
+# endif
                   || bg >= 0;                     // we don't use a transparent bg
+#endif
 
   // cut trailing spaces
   while (len && text [len - 1] == ' ')