[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 11/11] console: fix console resize
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL v2 11/11] console: fix console resize |
Date: |
Tue, 31 Jan 2017 16:50:31 +0100 |
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: address@hidden
Fixes: cd958edb1fae85d0c7d1e1acbff82d22724e8d64
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Marc-André Lureau <address@hidden>
Tested-by: Laszlo Ersek <address@hidden>
Message-id: address@hidden
---
ui/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.8.3.1
- Re: [Qemu-devel] [PULL v2 05/11] sdl2: set window ID, (continued)
[Qemu-devel] [PULL v2 09/11] ui/vnc: Fix problem with sending too many bytes as server name, Gerd Hoffmann, 2017/01/09
Re: [Qemu-devel] [PULL v2 00/11] ui patch queue, Peter Maydell, 2017/01/09
[Qemu-devel] [PULL v2 00/11] ui patch queue, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 02/11] ps2: add support for mice with extra/side buttons, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 03/11] ui: add support for mice with extra/side buttons, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 01/11] qapi: add support for mice with extra/side buttons, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 11/11] console: fix console resize,
Gerd Hoffmann <=
- [Qemu-devel] [PULL v2 07/11] ui/gtk.c: add ctrl-alt-= support for zoom in acceleration, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 05/11] ui/gtk: Fix mouse wheel on 3.4.0 or later, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 09/11] vnc: fix overflow in vnc_update_stats, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 10/11] gtk: Hardcode LC_CTYPE as C.utf-8, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 06/11] ui: fix format specfier in vnc to avoid break in build., Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 04/11] vnc: track LED state separately, Gerd Hoffmann, 2017/01/31
- [Qemu-devel] [PULL v2 08/11] spice: wakeup QXL worker to pick up mouse changes, Gerd Hoffmann, 2017/01/31
- Re: [Qemu-devel] [PULL v2 00/11] ui patch queue, Peter Maydell, 2017/01/31