diff options
author | Søren Sandmann <ssp@redhat.com> | 2012-08-12 11:03:16 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-23 17:34:32 -0400 |
commit | b6bbb4cfe146a547102e0188e767c9a55547b4b4 (patch) | |
tree | d0321a8c636c43fcb27798c27094c6195794191b | |
parent | 48622a37e0c6ad0c47fa69e83938239d5ad99cab (diff) |
Use an RGBA format for 32 bit images.
Otherwise the alpha channel will not be preserved.
-rw-r--r-- | src/qxl_image.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qxl_image.c b/src/qxl_image.c index 3c45bf2..ece1d99 100644 --- a/src/qxl_image.c +++ b/src/qxl_image.c @@ -206,7 +206,7 @@ qxl_image_create (qxl_screen_t *qxl, const uint8_t *data, } else if (Bpp == 4) { - image->bitmap.format = SPICE_BITMAP_FMT_32BIT; + image->bitmap.format = SPICE_BITMAP_FMT_RGBA; } else { @@ -220,10 +220,6 @@ qxl_image_create (qxl_screen_t *qxl, const uint8_t *data, image->bitmap.palette = 0; image->bitmap.data = physical_address (qxl, head, qxl->main_mem_slot); -#if 0 - ErrorF ("%p has size %d %d\n", image, width, height); -#endif - /* Add to hash table if caching is enabled */ if ((fallback && qxl->enable_fallback_cache) || (!fallback && qxl->enable_image_cache)) |