diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-24 12:10:39 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-31 16:09:16 +0100 |
commit | 3ef0c573d37b117867352a8bd8c567d3b774fe37 (patch) | |
tree | 8a0f77286af93af73c645ecef5443724fa6b35e8 /ui | |
parent | 27b224a61f97faabbd20bdf72c0c1a3dbe400cd1 (diff) | |
download | qemu-3ef0c573d37b117867352a8bd8c567d3b774fe37.zip qemu-3ef0c573d37b117867352a8bd8c567d3b774fe37.tar.gz qemu-3ef0c573d37b117867352a8bd8c567d3b774fe37.tar.bz2 |
console: fix console resize
Only skip surface reallocation in case the old surface was created using
qemu_alloc_display (via qemu_create_displaysurface) too, otherwise we
might end up with a DisplaySurface with the wrong backing storage.
Cc: 1658634@bugs.launchpad.net
Fixes: cd958edb1fae85d0c7d1e1acbff82d22724e8d64
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 1485256239-12219-1-git-send-email-kraxel@redhat.com
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index fe03a66..e353c85 100644 --- a/ui/console.c +++ b/ui/console.c @@ -2116,7 +2116,7 @@ void qemu_console_resize(QemuConsole *s, int width, int height) assert(s->console_type == GRAPHIC_CONSOLE); - if (s->surface && + if (s->surface && (s->surface->flags & QEMU_ALLOCATED_FLAG) && pixman_image_get_width(s->surface->image) == width && pixman_image_get_height(s->surface->image) == height) { return; |