Lines Matching refs:tt
58 struct test_target tt;
66 test_target_create_render(&t->out, target, &tt);
74 int x = rand() % (tt.width - 1);
75 int y = rand() % (tt.height - 1);
81 fill_rect(&t->out, tt.picture, tt.format,
87 cells[y*tt.width+x] = color(red, green, blue, alpha);
90 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
97 XShmGetImage(t->out.dpy, tt.draw, &image,
102 cells[y*tt.width+x])) {
111 cells[y*tt.width+x] & mask,
118 test_target_destroy_render(&t->out, &tt);
123 static void clear(struct test_display *dpy, struct test_target *tt)
126 XRenderFillRectangle(dpy->dpy, PictOpClear, tt->picture, &render_color,
127 0, 0, tt->width, tt->height);
132 struct test_target tt;
140 test_target_create_render(&t->out, target, &tt);
141 clear(&t->out, &tt);
143 test_init_image(&image, &t->out.shm, tt.format, tt.width, tt.height);
147 int w = rand() % tt.width;
148 int h = rand() % tt.height;
154 x = rand() % (2*tt.width) - tt.width;
155 y = rand() % (2*tt.height) - tt.height;
157 fill_rect(&t->out, tt.picture, tt.format,
165 if (x >= tt.width || y >= tt.height)
168 if (x + w > tt.width)
169 w = tt.width - x;
170 if (y + h > tt.height)
171 h = tt.height - y;
175 pixman_fill(cells, tt.width, 32, x, y, w, h,
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++) {
188 cells[y*tt.width+x])) {
197 cells[y*tt.width+x] & mask,
206 test_target_destroy_render(&t->out, &tt);