Lines Matching refs:out
30 static void fill(struct test_target *out,
33 int x = rand() % (2*out->width) - out->width;
34 int y = rand() % (2*out->height) - out->height;
35 int w = rand() % (2*out->width);
36 int h = rand() % (2*out->height);
40 fill_rect(out, alu, color, x, y, w, h);
44 static void copy(struct test_target *out,
47 int sx = rand() % (2*out->width) - ref->width;
48 int sy = rand() % (2*out->height) - ref->height;
49 int dx = rand() % (2*out->width) - ref->width;
50 int dy = rand() % (2*out->height) - ref->height;
51 int w = rand() % (2*out->width);
52 int h = rand() % (2*out->height);
57 XChangeGC(out->dpy->dpy, out->gc, GCFunction, &val);
58 XCopyArea(out->dpy->dpy,
59 out->draw, out->draw, out->gc,
93 static void put(struct test_target *out,
96 int x = rand() % (2*out->width) - out->width;
97 int y = rand() % (2*out->height) - out->height;
98 int w = rand() % out->width;
99 int h = rand() % out->height;
103 _put(out, x, y, w, h, color, alu);
109 struct test_target out, ref;
121 test_target_create_render(&test->out, target, &out);
124 clear(&out);
128 ops[rand() % ARRAY_SIZE(ops)](&out, &ref);
131 out.draw, out.format,
133 0, 0, out.width, out.height,
138 test_target_destroy_render(&test->out, &out);