summaryrefslogtreecommitdiff
path: root/t_blend.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-19 16:49:41 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-06-19 16:49:41 -0700
commit29494c0526c0a1e66e947dec455de1338fad11dd (patch)
tree087fae69484a0fae73fdb597e22cf251ab157e98 /t_blend.c
parent63074a124a755ac6374d644ae7960dbd8cab6251 (diff)
Note the source format in blend test error output.
Diffstat (limited to 't_blend.c')
-rw-r--r--t_blend.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/t_blend.c b/t_blend.c
index a8208b8..32c40d8 100644
--- a/t_blend.c
+++ b/t_blend.c
@@ -52,10 +52,14 @@ blend_test(Display *dpy, picture_info *win, picture_info *dst, int op,
snprintf(testname, 20, "%s blend", ops[op].name);
if (!eval_diff(testname, &expected, &tested, 0, 0, is_verbose)) {
- printf("src color: %.2f %.2f %.2f %.2f\n"
+ char srcformat[20];
+
+ describe_format(srcformat, 20, src_color->format);
+ printf("src color: %.2f %.2f %.2f %.2f (%s)\n"
"dst color: %.2f %.2f %.2f %.2f\n",
src_color->color.r, src_color->color.g,
src_color->color.b, src_color->color.a,
+ srcformat,
dst_color->color.r, dst_color->color.g,
dst_color->color.b, dst_color->color.a);
printf("src: %s, dst: %s\n", src_color->name, dst->name);