From d65b57cd332ca4435867afa31b6da85481635d52 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 27 Nov 2013 12:59:25 +0000 Subject: intel-virtual-output: Trim remote framebuffer to fit Signed-off-by: Chris Wilson --- tools/virtual.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/virtual.c b/tools/virtual.c index e522264a..f0915a4d 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -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) -- cgit v1.2.3