From 088ff35b3941724c59707cf7971c09f9a15e5ddb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Sep 2013 16:51:57 +0100 Subject: intel-virtual-output: Don't forget to name the mode Signed-off-by: Chris Wilson --- tools/virtual.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/virtual.c b/tools/virtual.c index 2613c372..ba443b2d 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -386,6 +386,7 @@ err: static int clone_update_modes__fixed(struct clone *clone) { + char mode_name[80]; XRRScreenResources *res; XRROutputInfo *info; XRRModeInfo mode; @@ -421,6 +422,8 @@ static int clone_update_modes__fixed(struct clone *clone) memset(&mode, 0, sizeof(mode)); mode.width = clone->width; mode.height = clone->height; + mode.nameLength = sprintf(mode_name, "FAKE-%dx%d", mode.width, mode.height); + mode.name = mode_name; id = 0; for (j = 0; j < res->nmode; j++) { -- cgit v1.2.3