summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-27 12:59:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-27 12:59:25 +0000
commitd65b57cd332ca4435867afa31b6da85481635d52 (patch)
tree1eb3e8fc7e43f0656ea7bde24ada63c28b3913ca /tools
parentdd7c556072978822c1110346354acfa3362b012e (diff)
intel-virtual-output: Trim remote framebuffer to fit
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c4
1 files changed, 3 insertions, 1 deletions
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)