[Spice-commits] display/res.c

Alexander Larsson alexl at kemper.freedesktop.org
Wed Jul 7 02:49:30 PDT 2010


 display/res.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 3eae0a7f20ff80b68ccabc9b4b28c1c463b9b8a8
Author: Alexander Larsson <alexl at redhat.com>
Date:   Wed Jul 7 11:48:54 2010 +0200

    Initialize id and widht/height of ImageDescriptor for surface images

diff --git a/display/res.c b/display/res.c
index c0d01fa..f0a9a91 100644
--- a/display/res.c
+++ b/display/res.c
@@ -2008,8 +2008,10 @@ BOOL QXLGetBitmap(PDev *pdev, QXLDrawable *drawable, QXLPHYSICAL *image_phys, SU
 
         internal = (InternalImage *)image_res->res;
 
+        SetImageId(internal, FALSE, 0, 0, 0, 0);
         internal->image.descriptor.type = SPICE_IMAGE_TYPE_SURFACE;
-        internal->image.descriptor.flags = 0;
+        internal->image.descriptor.width = 0;
+        internal->image.descriptor.height = 0;
         *surface_dest = internal->image.surface_image.surface_id = GetSurfaceId(surf);
 
         *image_phys = PA(pdev, &internal->image, pdev->main_mem_slot);
@@ -2172,8 +2174,10 @@ BOOL QXLGetAlphaBitmap(PDev *pdev, QXLDrawable *drawable, QXLPHYSICAL *image_phy
 
         internal = (InternalImage *)image_res->res;
 
+        SetImageId(internal, FALSE, 0, 0, 0, 0);
         internal->image.descriptor.type = SPICE_IMAGE_TYPE_SURFACE;
-        internal->image.descriptor.flags = 0;
+        internal->image.descriptor.width = 0;
+        internal->image.descriptor.height = 0;
         *surface_dest = internal->image.surface_image.surface_id = GetSurfaceId(surf);
 
         *image_phys = PA(pdev, &internal->image, pdev->main_mem_slot);


More information about the Spice-commits mailing list