summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-04-01 15:38:22 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-13 15:24:54 -0700
commit0fcb26e0efdab2a8662b50dd6957b681c87b6737 (patch)
tree6910530050b62b98c0f04185560d7bd37634a14a
parentc6bbcba1102cb4420303afa0f6c1338e5885cf3d (diff)
Add tiled text test
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
-rw-r--r--do_tests.c4
-rw-r--r--do_text.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/do_tests.c b/do_tests.c
index 114c87d..f746c10 100644
--- a/do_tests.c
+++ b/do_tests.c
@@ -924,6 +924,10 @@ Test test[] = {
InitText, DoText, ClearTextWin, EndText,
V1_2FEATURE, ROP, 0,
{80, False, "6x13", NULL}},
+ {"-tileftext","Char in 80-char line (6x13)", NULL,
+ InitText, DoText, ClearTextWin, EndText,
+ V1_2FEATURE, ROP, 0,
+ {80, False, "6x13", NULL, FillTiled}},
{"-f8text", "Char in 70-char line (8x13)", NULL,
InitText, DoText, ClearTextWin, EndText,
V1_3FEATURE, ROP, 0,
diff --git a/do_text.c b/do_text.c
index d09af5d..8d28def 100644
--- a/do_text.c
+++ b/do_text.c
@@ -23,6 +23,7 @@ SOFTWARE.
#include "x11perf.h"
#include <stdio.h>
+#include "bitmaps.h"
static char **charBuf;
static XFontStruct *font, *bfont;
@@ -65,6 +66,8 @@ InitText(XParms xp, Parms p, int64_t reps)
XChangeGC(xp->d, xp->fggc, GCFont, &gcv);
XChangeGC(xp->d, xp->bggc, GCFont, &gcv);
+ SetFillStyle(xp, p);
+
charsPerLine = p->objects;
charsPerLine = (charsPerLine + 3) & ~3;
p->objects = charsPerLine;