From 0e2487bd6f56445b43307536a465ee2ba810aed9 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 21 Oct 2011 15:59:07 +0200 Subject: 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 --- hw/qxl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/qxl.h') diff --git a/hw/qxl.h b/hw/qxl.h index 37b2619..766aa6d 100644 --- a/hw/qxl.h +++ b/hw/qxl.h @@ -48,7 +48,8 @@ typedef struct PCIQXLDevice { QXLSurfaceCreate surface; uint32_t commands; uint32_t resized; - int32_t stride; + int32_t qxl_stride; + uint32_t abs_stride; uint32_t bits_pp; uint32_t bytes_pp; uint8_t *data, *flipped; -- cgit v1.1