diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-05-18 17:01:49 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-24 13:44:32 -0400 |
commit | 22b64d2ae25dba938da65983cbf3d63e6336907f (patch) | |
tree | 645c79778552d87170af2e1cf1ffee16fbe6ff69 /server/red_parse_qxl.c | |
parent | 54db42bf60493683f493300e87269a662f4c672a (diff) | |
download | spice-22b64d2ae25dba938da65983cbf3d63e6336907f.tar.gz spice-22b64d2ae25dba938da65983cbf3d63e6336907f.tar.xz spice-22b64d2ae25dba938da65983cbf3d63e6336907f.zip |
Add support for LZ compression of A8 images
Graduality is irrelevant for A8 images, so instead of using RGB-ness
as a short-cut, add a new macro BITMAP_FMT_HAS_GRADUALITY() that
returns true for the existing RGB images, but false for A8.
Diffstat (limited to 'server/red_parse_qxl.c')
-rw-r--r-- | server/red_parse_qxl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 3bf49a0c..2953e800 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -329,7 +329,7 @@ static SpiceChunks *red_get_image_data_chunked(RedMemSlotInfo *slots, int group_ // This is based on SPICE_BITMAP_FMT_*, copied from server/red_worker.c // to avoid a possible unoptimization from making it non static. -static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1}; +static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1}; static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id, QXLPHYSICAL addr, uint32_t flags) |