summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-04-19 15:46:53 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-19 15:47:48 +0200
commit916f3818d8200efe0c2c5c90aaf8b197be562eba (patch)
treec22e7f965e414702a3e7f270c480a3935e7e1d70
parent8ef80db4acdd52e8c1fd24f26606e5ec0e6d9181 (diff)
Pass format when creating surfaces rather than depth
-rw-r--r--spice/protocol.h3
-rw-r--r--spice/qxl_dev.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/spice/protocol.h b/spice/protocol.h
index c63d1a1..c78ba8c 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -411,9 +411,8 @@ typedef struct SPICE_ATTR_PACKED SpiceMsgSurfaceCreate {
uint32_t surface_id;
uint32_t width;
uint32_t height;
- uint8_t depth;
+ uint32_t format;
uint32_t flags;
- uint32_t type;
} SpiceMsgSurfaceCreate;
typedef struct SPICE_ATTR_PACKED SpiceMsgSurfaceDestroy {
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 2873101..30f8eab 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -145,7 +145,7 @@ typedef struct SPICE_ATTR_PACKED QXLSurfaceCreate {
uint32_t width;
uint32_t height;
int32_t stride;
- uint32_t depth;
+ uint32_t format;
uint32_t position;
uint32_t mouse_mode;
uint32_t flags;
@@ -312,7 +312,7 @@ enum QXLSurfaceCmdType {
};
typedef struct SPICE_ATTR_PACKED QXLSurface {
- uint8_t depth;
+ uint32_t format;
uint32_t width;
uint32_t height;
int32_t stride;