[Spice-devel] [[Qemu PATCH]] spice: initialize QXLDrawable.surfaces_dest in VGA mode

Yonit Halperin yhalperi at redhat.com
Tue Aug 31 00:28:21 PDT 2010


---
 spice-display.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/spice-display.c b/spice-display.c
index fec2432..fed2056 100644
--- a/spice-display.c
+++ b/spice-display.c
@@ -72,6 +72,9 @@ SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd)
     drawable->effect          = QXL_EFFECT_OPAQUE;
     drawable->release_info.id = (intptr_t)update;
     drawable->type            = QXL_DRAW_COPY;
+    drawable->surfaces_dest[0] = -1;
+    drawable->surfaces_dest[1] = - 1;
+    drawable->surfaces_dest[2] = -1;
 
     drawable->u.copy.rop_descriptor  = SPICE_ROPD_OP_PUT;
     drawable->u.copy.src_bitmap      = (intptr_t)image;
-- 
1.7.1.1



More information about the Spice-devel mailing list