aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-10-21 15:59:07 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-11-01 12:11:53 +0100
commit0e2487bd6f56445b43307536a465ee2ba810aed9 (patch)
tree150e9f1e3b6b4204c59e7125dd59d31c1375f41c /hw/qxl.h
parentff74c5a9a91c6dbf1017195462aa4176f7381240 (diff)
downloadqemu-0e2487bd6f56445b43307536a465ee2ba810aed9.zip
qemu-0e2487bd6f56445b43307536a465ee2ba810aed9.tar.gz
qemu-0e2487bd6f56445b43307536a465ee2ba810aed9.tar.bz2
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>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h3
1 files changed, 2 insertions, 1 deletions
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;