diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-05-01 22:15:14 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-05-01 23:16:27 -0700 |
commit | 0410434d5a10a52cb381d6713d347da759474edd (patch) | |
tree | 7abd57ea2b957cd6bdc2858f1d387513ad0e473e /t_fill.c | |
parent | 202329633d2ebc370e11b922337df7b412f8d01d (diff) |
Include the format of the picture in the fill test failure output.
Diffstat (limited to 't_fill.c')
-rw-r--r-- | t_fill.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |