summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSøren Sandmann <ssp@redhat.com>2012-08-12 11:03:16 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-09-05 18:17:21 -0400
commit37c97620da959d9214abfc760835aa3031d54daa (patch)
tree34358d6e6bfb5963cdc2196115e4c9f28b216f30 /src
parent1e89aab2dc0beb01f43a2397faa05a8cd01a7547 (diff)
Use an RGBA format for 32 bit images
With the upcoming Render changes, we can no longer assume that the fourth channel of images is unused.
Diffstat (limited to 'src')
-rw-r--r--src/qxl_image.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qxl_image.c b/src/qxl_image.c
index 68d063e..6211035 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))