summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-09-07 10:50:13 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-09-14 10:08:28 +0200
commit527d52ae2567f14e6171d15defd5100a59d86d7e (patch)
tree54fc56875ac61a27db375e0bda3640ff75ee8f48
parent3eae24f83dede54ca380daff02b737fef6f98564 (diff)
add compat flag for 16bpp mode
spice 0.6 uses 32bpp values unconditionally for brush and palette colors. spice 0.4 used to use 16 bpp or 32 bpp depending on the video mode. The qxl parser needs to know the guest video mode depth to correctly interpret these values in spice 0.4 compat mode. Add a flag to pass on this informartion.
-rw-r--r--spice/qxl_dev.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 7a121ad..ce9c61f 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -170,7 +170,8 @@ typedef struct SPICE_ATTR_PACKED QXLCommand {
uint32_t padding;
} QXLCommand;
-#define QXL_COMMAND_FLAG_COMPAT (1<<0)
+#define QXL_COMMAND_FLAG_COMPAT (1<<0)
+#define QXL_COMMAND_FLAG_COMPAT_16BPP (2<<0)
typedef struct SPICE_ATTR_PACKED QXLCommandExt {
QXLCommand cmd;