diff options
author | Søren Sandmann <ssp@redhat.com> | 2011-12-20 09:01:17 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-09-05 18:17:21 -0400 |
commit | 2fecf3a171e64ca0dad5653ed740409dc5af2edf (patch) | |
tree | cfa81416c2dc64328282c9867e2ccb2ee679105c /src | |
parent | 37c97620da959d9214abfc760835aa3031d54daa (diff) |
Enable 8 bit pixmaps.
a8 surfaces are now supported with the 8BIT_A format in spice, so we
can have support 8 bit pixmaps.
Diffstat (limited to 'src')
-rw-r--r-- | src/qxl_image.c | 2 | ||||
-rw-r--r-- | src/qxl_surface.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/qxl_image.c b/src/qxl_image.c index 6211035..4d9bc77 100644 --- a/src/qxl_image.c +++ b/src/qxl_image.c @@ -202,7 +202,7 @@ qxl_image_create (qxl_screen_t *qxl, const uint8_t *data, } else if (Bpp == 1) { - image->bitmap.format = SPICE_BITMAP_FMT_8BIT; + image->bitmap.format = SPICE_BITMAP_FMT_8BIT_A; } else if (Bpp == 4) { diff --git a/src/qxl_surface.c b/src/qxl_surface.c index 579a284..0169350 100644 --- a/src/qxl_surface.c +++ b/src/qxl_surface.c @@ -706,6 +706,7 @@ qxl_surface_create (surface_cache_t * cache, return NULL; } +#if 0 if (bpp == 8) { static int warned; @@ -717,6 +718,7 @@ qxl_surface_create (surface_cache_t * cache, return NULL; } +#endif if (bpp != 8 && bpp != 16 && bpp != 32 && bpp != 24) { |