summaryrefslogtreecommitdiff
path: root/t_composite.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-04-19 09:27:01 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-04-19 09:27:01 -0700
commitccf3c74e703aacb6a3677842e14668fce0e315cc (patch)
treea8d89f21a2b18567ee8a3b1f92de7c9cf225668a /t_composite.c
parentd08fdf4794584f6fc0d78f27ec331a90d1ebd279 (diff)
Respect --iter in a couple more tests.
Diffstat (limited to 't_composite.c')
-rw-r--r--t_composite.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/t_composite.c b/t_composite.c
index e31b3c6..ea03f8d 100644
--- a/t_composite.c
+++ b/t_composite.c
@@ -36,16 +36,20 @@ composite_test(Display *dpy, picture_info *win, picture_info *dst, int op,
char testname[40];
XRenderPictureAttributes pa;
Bool success = TRUE;
+ int i;
if (componentAlpha) {
pa.component_alpha = TRUE;
XRenderChangePicture(dpy, mask_color->pict, CPComponentAlpha,
&pa);
}
- XRenderComposite(dpy, PictOpSrc, dst_color->pict, 0, dst->pict, 0, 0,
- 0, 0, 0, 0, win_width, win_height);
- XRenderComposite(dpy, ops[op].op, src_color->pict, mask_color->pict,
- dst->pict, 0, 0, 0, 0, 0, 0, win_width, win_height);
+ for (i = 0; i < pixmap_move_iter; i++) {
+ XRenderComposite(dpy, PictOpSrc, dst_color->pict, 0, dst->pict,
+ 0, 0, 0, 0, 0, 0, win_width, win_height);
+ XRenderComposite(dpy, ops[op].op, src_color->pict,
+ mask_color->pict, dst->pict, 0, 0, 0, 0, 0, 0,
+ win_width, win_height);
+ }
get_pixel(dpy, dst, 0, 0, &tested);
/* Copy the output to the window, so the user sees something visual. */
if (win != dst)