From 43952c457e940cb46a0b9c04cec7727e8371fffc Mon Sep 17 00:00:00 2001 From: root Date: Sat, 4 Mar 2006 18:42:15 +0000 Subject: [PATCH] *** empty log message *** --- Changes | 2 ++ src/feature.h | 7 +++++++ src/rxvtfont.C | 6 ++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 855a94f4..9b3cac78 100644 --- 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 diff --git a/src/feature.h b/src/feature.h index 94240d7c..5acf446f 100644 --- a/src/feature.h +++ b/src/feature.h @@ -60,6 +60,13 @@ * 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. */ diff --git a/src/rxvtfont.C b/src/rxvtfont.C index a894ac27..28c17100 100644 --- a/src/rxvtfont.C +++ b/src/rxvtfont.C @@ -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] == ' ') -- 2.34.1