Lines Matching defs:tt
70 struct test_target tt;
78 test_target_create_render(&t->out, target, &tt);
86 int x = rand() % (tt.width - 1);
87 int y = rand() % (tt.height - 1);
94 fill_rect(&t->out, tt.draw, tt.format, use_shm,
99 cells[y*tt.width+x] = fg;
102 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
109 XShmGetImage(t->out.dpy, tt.draw, &image,
114 cells[y*tt.width+x])) {
123 cells[y*tt.width+x] & mask,
124 cells[y*tt.width+x],
131 test_target_destroy_render(&t->out, &tt);
136 static void clear(struct test_display *dpy, struct test_target *tt)
139 XRenderFillRectangle(dpy->dpy, PictOpClear, tt->picture, &render_color,
140 0, 0, tt->width, tt->height);
145 struct test_target tt;
154 test_target_create_render(&t->out, target, &tt);
155 clear(&t->out, &tt);
157 test_init_image(&image, &t->out.shm, tt.format, tt.width, tt.height);
168 x = rand() % tt.width;
169 y = rand() % tt.height;
170 w = rand() % (tt.width - x);
171 h = rand() % (tt.height - y);
173 fill_rect(&t->out, tt.draw, tt.format, use_shm,
176 pixman_fill(cells, tt.width, 32, x, y, w, h, fg);
179 XShmGetImage(t->out.dpy, tt.draw, &image, 0, 0, AllPlanes);
181 for (y = 0; y < tt.height; y++) {
182 for (x = 0; x < tt.width; x++) {
187 if (!pixel_equal(image.depth, result, cells[y*tt.width+x])) {
193 x, y, tt.width, tt.height);
197 cells[y*tt.width+x] & mask,
198 cells[y*tt.width+x],
208 test_target_destroy_render(&t->out, &tt);