mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
ff74c5a9a9
commit
0e2487bd6f
2 changed files with 14 additions and 12 deletions
3
hw/qxl.h
3
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue