summaryrefslogtreecommitdiffstats
path: root/server/red_common.h
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-05-18 17:01:49 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-08-24 13:44:32 -0400
commit22b64d2ae25dba938da65983cbf3d63e6336907f (patch)
tree645c79778552d87170af2e1cf1ffee16fbe6ff69 /server/red_common.h
parent54db42bf60493683f493300e87269a662f4c672a (diff)
downloadspice-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_common.h')
-rw-r--r--server/red_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_common.h b/server/red_common.h
index b52a7d13..478b56a4 100644
--- a/server/red_common.h
+++ b/server/red_common.h
@@ -38,7 +38,7 @@ enum {
static inline int bitmap_fmt_is_rgb(uint8_t fmt)
{
static const int BITMAP_FMT_IS_RGB[SPICE_BITMAP_FMT_ENUM_END] =
- {0, 0, 0, 0, 0, 0, 1, 1, 1, 1};
+ {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};
if (fmt >= SPICE_BITMAP_FMT_ENUM_END) {
spice_warning("fmt >= SPICE_BITMAP_FMT_ENUM_END");