]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui/console: fix qemu_console_resize() regression
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 25 Jul 2022 11:58:15 +0000 (15:58 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 18 Aug 2022 06:46:55 +0000 (10:46 +0400)
commit88738ea40bee4c2cf9aae05edd2ec87e0cbeaf36
tree06a039e056fefe3d1176ff9e3977e91c81328b1d
parentf0caba4475b630c79aa34ee7385d0fbe8a2d1ea8
ui/console: fix qemu_console_resize() regression

The display may be corrupted when changing screen colour depth in
qemu-system-ppc/MacOS since 7.0.

Do not short-cut qemu_console_resize() if the surface is backed by vga
vram. When the scanout isn't set, or it is already allocated, or opengl,
and the size is fitting, we still avoid the reallocation & replace path.

Fixes: commit cb8962c1 ("ui: do not create a surface when resizing a GL scanout")
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220725115815.2461322-1-marcandre.lureau@redhat.com>
ui/console.c