diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-19 22:28:22 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-19 22:28:22 -0800 |
commit | d970d9de1c98bc828365f15fb08aaa8dda214dd6 (patch) | |
tree | 63568f8c258660f53b7afc646355818e2b795faf | |
parent | 3147d783925bb42c7af78c9f5508c0dc245b942b (diff) |
Bug 31640 - x11perf: Doesn't build without libXft
https://bugs.freedesktop.org/show_bug.cgi?id=31640
Fix trapezoid checks to look for both render & xft
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | do_tests.c | 2 | ||||
-rw-r--r-- | do_traps.c | 2 | ||||
-rw-r--r-- | x11perf.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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, @@ -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> @@ -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 ); |