From 2fecf3a171e64ca0dad5653ed740409dc5af2edf Mon Sep 17 00:00:00 2001 From: Søren Sandmann Date: Tue, 20 Dec 2011 09:01:17 -0500 Subject: Enable 8 bit pixmaps. a8 surfaces are now supported with the 8BIT_A format in spice, so we can have support 8 bit pixmaps. --- src/qxl_image.c | 2 +- src/qxl_surface.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3