diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-02 16:51:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-02 16:51:57 +0100 |
commit | 088ff35b3941724c59707cf7971c09f9a15e5ddb (patch) | |
tree | e1e6d709a36f6823e591bb03f5f8d5f23afc0e59 | |
parent | 4b3669548abf9a3c562b468359d8bee1cc86fb32 (diff) |
intel-virtual-output: Don't forget to name the mode
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tools/virtual.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++) { |