]> git.ipfire.org Git - thirdparty/qemu.git/commit
stdvga: fix screen blanking
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Jun 2024 13:14:41 +0000 (15:14 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 20 Jun 2024 07:04:36 +0000 (10:04 +0300)
commitd08c1fd6dbd8b410a63ca27ceea04f0e413bf58b
treed70d9d7eacb280538faa2b2d9501e17c865ee1e8
parent1798f382428e56fe7e0dbfd9394059dcb8a21b84
stdvga: fix screen blanking

In case the display surface uses a shared buffer (i.e. uses vga vram
directly instead of a shadow) go unshare the buffer before clearing it.

This avoids vga memory corruption, which in turn fixes unblanking not
working properly with X11.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2067
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20240605131444.797896-2-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit b1cf266c82cb1211ee2785f1813a6a3f3e693390)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/display/vga.c