]> git.ipfire.org Git - thirdparty/qemu.git/commit
qxl: always update displaysurface on resize
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Sep 2012 20:09:23 +0000 (22:09 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 30 Nov 2012 21:41:11 +0000 (15:41 -0600)
commita106eaa3a6e6303fba80d763e806102fec28c943
tree9f7f6eec011ac3dc7fdb39769f76f4e40f509809
parent472da83043f72e1730fe93332c55eca357bb6982
qxl: always update displaysurface on resize

Don't try to be clever and skip displaysurface reinitialization in case
the size hasn't changed.  Other parameters might have changed
nevertheless, for example depth or stride, resulting in rendering being
broken then.

Trigger: boot linux guest with vesafb, start X11, make sure both vesafb
and X11 use the display same resolution.  Then watch X11 screen being
upside down.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 0ec8df3974d2a4ff95b5fd4785b9bd3def7252f3)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/qxl-render.c