summaryrefslogtreecommitdiff
path: root/test/test_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-12-02 10:43:51 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-12-02 17:11:06 +0000
commit49af22ee5533b1afbf30f50fcfd7245f1c8d98bc (patch)
treefeffaa9416d81a129c15459603ab0a4e224643fb /test/test_display.c
parent3dae8b97151f1d08942ec690dac5a5008901d7d0 (diff)
tests: Exercise tiled fills
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/test_display.c')
-rw-r--r--test/test_display.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_display.c b/test/test_display.c
index b5e7e06e..36cfe698 100644
--- a/test/test_display.c
+++ b/test/test_display.c
@@ -16,12 +16,12 @@ static Window get_root(struct test_display *t)
* can guarantee we do not get clipped by children.
*/
attr.override_redirect = 1;
- w= XCreateWindow(t->dpy, DefaultRootWindow(t->dpy),
- 0, 0, t->width, t->height, 0,
- DefaultDepth(t->dpy, DefaultScreen(t->dpy)),
- InputOutput,
- DefaultVisual(t->dpy, DefaultScreen(t->dpy)),
- CWOverrideRedirect, &attr);
+ w = XCreateWindow(t->dpy, DefaultRootWindow(t->dpy),
+ 0, 0, t->width, t->height, 0,
+ DefaultDepth(t->dpy, DefaultScreen(t->dpy)),
+ InputOutput,
+ DefaultVisual(t->dpy, DefaultScreen(t->dpy)),
+ CWOverrideRedirect, &attr);
XMapWindow(t->dpy, w);
return w;
@@ -125,6 +125,7 @@ static void default_setup(struct test_display *dpy)
XRenderFindVisualFormat(dpy->dpy,
DefaultVisual(dpy->dpy,
DefaultScreen(dpy->dpy)));
+ dpy->depth = DefaultDepth(dpy->dpy, DefaultScreen(dpy->dpy));
}
static void test_get_displays(int argc, char **argv,
@@ -136,8 +137,7 @@ static void test_get_displays(int argc, char **argv,
shm_setup(real);
real->root = get_root(real);
- ref->dpy = ref_display(real->width, real->height,
- DefaultDepth(real->dpy, DefaultScreen(real->dpy)));
+ ref->dpy = ref_display(real->width, real->height, real->depth);
default_setup(ref);
shm_setup(ref);
ref->root = get_root(ref);