[Spice-devel] [PATCH] server: fix bitmap flags assignment in red_send_image

Yonit Halperin yhalperi at redhat.com
Wed Jun 2 04:44:28 PDT 2010


SPICE_IMAGE_FLAGS_HIGH_BITS_SET was assigned to the wrong field
---
 server/red_worker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index b2f514a..b1fb642 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8662,12 +8662,12 @@ static void red_send_image(DisplayChannel *display_channel, ImageItem *item)
 
     QXL_SET_IMAGE_ID(red_image, QXL_IMAGE_GROUP_RED, ++worker->bits_unique);
     red_image->descriptor.type = SPICE_IMAGE_TYPE_BITMAP;
-    red_image->descriptor.flags = 0;
+    red_image->descriptor.flags = item->image_flags;
     red_image->descriptor.width = item->width;
     red_image->descriptor.height = item->height;
 
     bitmap.format = item->image_format;
-    bitmap.flags = QXL_BITMAP_DIRECT | item->image_flags;
+    bitmap.flags = QXL_BITMAP_DIRECT;
     bitmap.flags |= item->top_down ? QXL_BITMAP_TOP_DOWN : 0;
     bitmap.x = item->width;
     bitmap.y = item->height;
-- 
1.6.6.1



More information about the Spice-devel mailing list