summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--do_tests.c2
-rw-r--r--do_traps.c2
-rw-r--r--x11perf.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/do_tests.c b/do_tests.c
index ce3026b..e4f3cb1 100644
--- a/do_tests.c
+++ b/do_tests.c
@@ -788,7 +788,7 @@ Test test[] = {
InitTrapezoids, DoTrapezoids, NullProc, EndTrapezoids,
V1_4FEATURE, ROP, 0,
{2, 300, "escherknot", NULL, FillTiled}},
-#ifdef XRENDER
+#if defined(XRENDER) && defined(XFT)
{"-aatrap1", "Fill 1x1 aa trap", NULL,
InitFixedTraps, DoFixedTraps, NullProc, EndFixedTraps,
V1_5FEATURE, NONROP, 0,
diff --git a/do_traps.c b/do_traps.c
index 326b56e..05f43c2 100644
--- a/do_traps.c
+++ b/do_traps.c
@@ -104,7 +104,7 @@ EndTrapezoids(XParms xp, Parms p)
free(points);
}
-#ifdef XRENDER
+#if defined(XRENDER) && defined(XFT)
#include <X11/extensions/Xrender.h>
#include <X11/Xft/Xft.h>
diff --git a/x11perf.h b/x11perf.h
index 597b1f7..1deb037 100644
--- a/x11perf.h
+++ b/x11perf.h
@@ -291,7 +291,7 @@ extern void EndAAText ( XParms xp, Parms p );
extern int InitTrapezoids ( XParms xp, Parms p, int reps );
extern void DoTrapezoids ( XParms xp, Parms p, int reps );
extern void EndTrapezoids ( XParms xp, Parms p );
-#ifdef XRENDER
+#if defined(XRENDER) && defined(XFT)
extern int InitFixedTraps ( XParms xp, Parms p, int reps );
extern void DoFixedTraps ( XParms xp, Parms p, int reps );
extern void EndFixedTraps ( XParms xp, Parms p );