]> git.proxmox.com Git - qemu.git/commit
qxl: stride fixup
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Oct 2011 13:59:07 +0000 (15:59 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 1 Nov 2011 11:11:53 +0000 (12:11 +0100)
commit0e2487bd6f56445b43307536a465ee2ba810aed9
tree150e9f1e3b6b4204c59e7125dd59d31c1375f41c
parentff74c5a9a91c6dbf1017195462aa4176f7381240
qxl: stride fixup

spice uses negative stride value to signal the bitmap is upside down.
The qxl renderer (used for scl, vnc and screenshots) wants a positive
value because it is easier to work with.  The positive value is then
stored in the very same variable, which has the drawback that the
upside-down test works only once.  Fix by using two variables.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl-render.c
hw/qxl.h