Lines Matching defs:tt
22 struct test_target *tt)
27 tt->dpy = dpy;
28 tt->target = target;
30 tt->draw = dpy->root;
31 tt->format = dpy->format;
32 tt->width = dpy->width;
33 tt->height = dpy->height;
34 tt->depth = dpy->depth;
42 tt->width /= 4;
43 tt->height /= 4;
44 tt->draw = XCreateWindow(dpy->dpy, tt->draw,
46 tt->width, tt->height,
47 0, tt->format->depth,
52 XMapWindow(dpy->dpy, tt->draw);
56 tt->format = XRenderFindStandardFormat(dpy->dpy, PictStandardARGB32);
57 tt->draw = XCreatePixmap(dpy->dpy, tt->draw,
59 tt->format->depth);
60 tt->depth = 32;
64 tt->picture =
65 XRenderCreatePicture(dpy->dpy, tt->draw, tt->format, 0, NULL);
68 tt->gc = XCreateGC(dpy->dpy, tt->draw, GCGraphicsExposures, &gcv);
72 struct test_target *tt)
74 XRenderFreePicture(dpy->dpy, tt->picture);
75 switch (tt->target) {
79 XDestroyWindow(dpy->dpy, tt->draw);
82 XFreePixmap(dpy->dpy, tt->draw);