intel-virtual-output: Trim remote framebuffer to fit

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-11-27 12:59:25 +00:00
parent dd7c556072
commit d65b57cd33
1 changed files with 3 additions and 1 deletions

View File

@ -1044,8 +1044,10 @@ static int context_update(struct context *ctx)
y2 = v;
}
x2 -= x1;
y2 -= y1;
DBG(("%s fb bounds (%d, %d)x(%d, %d)\n", DisplayString(display->dpy),
x1, y1, x2-x1, y2-y1));
x1, y1, x2, y2));
res = _XRRGetScreenResourcesCurrent(display->dpy, display->root);
if (res == NULL)