summaryrefslogtreecommitdiff
path: root/t_fill.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-05-01 22:15:14 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-05-01 23:16:27 -0700
commit0410434d5a10a52cb381d6713d347da759474edd (patch)
tree7abd57ea2b957cd6bdc2858f1d387513ad0e473e /t_fill.c
parent202329633d2ebc370e11b922337df7b412f8d01d (diff)
Include the format of the picture in the fill test failure output.
Diffstat (limited to 't_fill.c')
-rw-r--r--t_fill.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/t_fill.c b/t_fill.c
index 1e6c518..ff61ef3 100644
--- a/t_fill.c
+++ b/t_fill.c
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include "rendercheck.h"
@@ -31,11 +32,14 @@ Bool
fill_test(Display *dpy, picture_info *win, picture_info *src)
{
color4d tested;
+ char name[20];
get_pixel(dpy, src, 0, 0, &tested);
/* Copy the output to the window, so the user sees something visual. */
XRenderComposite(dpy, PictOpSrc, src->pict, 0, win->pict, 0, 0, 0, 0,
0, 0, win_width, win_height);
- return eval_diff("fill", &src->color, &tested, 0, 0, is_verbose);
+ strcpy(name, "fill ");
+ describe_format(name, 20 - strlen(name), src->format);
+ return eval_diff(name, &src->color, &tested, 0, 0, is_verbose);
}