diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-07 11:48:54 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-07 11:48:54 +0200 |
commit | 3eae0a7f20ff80b68ccabc9b4b28c1c463b9b8a8 (patch) | |
tree | b0129873df9e5df751a846fe20d1123f59f1f568 | |
parent | efe256fc9ae7cba55eec1514611bdabec77e70f4 (diff) |
Initialize id and widht/height of ImageDescriptor for surface images
-rw-r--r-- | display/res.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |