Lines Matching defs:tt
16 static void target_init(struct test_display *t, struct draw *tt, int size)
20 tt->a = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
22 tt->b = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
26 tt->gc = XCreateGC(t->dpy, tt->a, GCGraphicsExposures, &val);
28 tt->format = XRenderFindStandardFormat(t->dpy, PictStandardARGB32);
31 XChangeGC(t->dpy, tt->gc, GCForeground, &val);
32 XFillRectangle(t->dpy, tt->a, tt->gc, 0, 0, size, size);
35 XChangeGC(t->dpy, tt->gc, GCForeground, &val);
36 XFillRectangle(t->dpy, tt->b, tt->gc, 0, 0, size, size);
39 static void target_fini(struct test_display *t, struct draw *tt)
41 XFreePixmap(t->dpy, tt->a);
42 XFreePixmap(t->dpy, tt->b);