diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-13 21:41:16 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-13 21:43:59 +0100 |
commit | 05fdfe3b2813495ea122471ed6dde340e538aa65 (patch) | |
tree | f948ec38dd6734f369d656c71b26f5d6f45da798 | |
parent | 8a92261b22a8c134a48d1491627ac05136563603 (diff) |
intel-virtual-output: Compile fixes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tools/virtual.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index f1a60573..a4263ae0 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -3060,6 +3060,7 @@ static int first_display_sibling(struct context *ctx, int i) static void display_cleanup(struct display *display) { Display *dpy = display->dpy; + XRRScreenResources *res; int n; XGrabServer(dpy); @@ -3067,7 +3068,7 @@ static void display_cleanup(struct display *display) res = _XRRGetScreenResourcesCurrent(dpy, display->root); if (res != NULL) { for (n = 0; n < res->ncrtc; n++) - disable_crtc(display->dpy, res, res->crtc[n]); + disable_crtc(display->dpy, res, res->crtcs[n]); XRRFreeScreenResources(res); } @@ -3082,7 +3083,7 @@ static void context_cleanup(struct context *ctx) int i, j; for (i = 1; i < ctx->ndisplay; i++) - display_cleanup(&ctx.display[i]); + display_cleanup(&ctx->display[i]); res = _XRRGetScreenResourcesCurrent(dpy, ctx->display->root); if (res == NULL) |