qxl: always update displaysurface on resize
commit0ec8df3974d2a4ff95b5fd4785b9bd3def7252f3
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 14 Sep 2012 20:09:23 +0000 (14 22:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Oct 2012 05:37:10 +0000 (8 07:37 +0200)
treeff0fbeb9e7b2b954a68938166d3d2c199422eded
parent4bb26682f70a5f626cad3e0ac82bf4b6252ea7a4
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>
hw/qxl-render.c