runtime one.
Compile I<xft>: Attempt to find a visual with the given bit depth;
option B<-depth>.
+=item B<buffered:> I<boolean>
+
+Compile I<xft>: Turn on/off double-buffering for xft (default enabled).
+On some card/driver combination enabling it slightly decreases
+performance, on most it greatly helps it. The slowdown is small, so it
+should normally be enabled.
+
=item B<geometry:> I<geom>
Create the window with the specified X window geometry [default 80x24];
*/
/*
- * Forcefully disable double-buffering for xft. On some card/driver combination
- * enabling it 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.
*/
#define CURSOR_BLINK_INTERVAL 0.5
set_option (Opt_pastableTabs);
set_option (Opt_intensityStyles);
set_option (Opt_iso14755_52);
+ set_option (Opt_buffered);
}
static void
nodef(iso14755_52)
#endif
def(console, 33)
+#if XFT
+ def(buffered, 34)
+#endif
#endif
#if XFT
def (depth)
+ def (buffered)
#endif
#if ENABLE_FRILLS
def (transient_for)
* Maybe make buffering into a resource flag? Compile time option doesn't seems like a
* good idea from the perspective of packaging for wide variety of user configs.
*/
- bool buffered = bg >= Color_transparent;
-#ifdef FORCE_UNBUFFERED_XFT
- buffered = false;
-#endif
+ bool buffered = bg >= Color_transparent
+ && term->option (Opt_buffered);
// cut trailing spaces
while (len && text [len - 1] == ' ')
#endif
#if XFT
STRG (Rs_depth, "depth", "depth", "number", "depth of visual to request"),
+ BOOL (Rs_buffered, "buffered", NULL, Opt_buffered, 0, NULL),
#endif
#if ENABLE_FRILLS
RSTRG (Rs_transient_for, "transient-for", "windowid"),