From 05fdfe3b2813495ea122471ed6dde340e538aa65 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 13 Jun 2014 21:41:16 +0100 Subject: intel-virtual-output: Compile fixes Signed-off-by: Chris Wilson --- tools/virtual.c | 5 +++-- 1 file 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) -- cgit v1.2.3