From 916f3818d8200efe0c2c5c90aaf8b197be562eba Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 19 Apr 2010 15:46:53 +0200 Subject: [PATCH] Pass format when creating surfaces rather than depth --- spice/protocol.h | 3 +-- spice/qxl_dev.h | 4 ++-- 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;