[Spice-devel] [PATCH 3/3] qxl abi: add Opaque.

Gerd Hoffmann kraxel at redhat.com
Wed Jun 23 04:04:01 PDT 2010


Add QXLOpaque, also fix tyops (s/rop_decriptor/rop_descriptor/).
---
 spice/draw.h    |    2 +-
 spice/qxl_dev.h |   13 +++++++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/spice/draw.h b/spice/draw.h
index 42cd025..3f277d8 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -209,7 +209,7 @@ typedef struct SPICE_ATTR_PACKED SpiceOpaque {
     SPICE_ADDRESS src_bitmap;
     SpiceRect src_area;
     SpiceBrush brush;
-    uint16_t rop_decriptor;
+    uint16_t rop_descriptor;
     uint8_t scale_mode;
     SpiceQMask mask;
 } SpiceOpaque;
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index b95f920..3292b11 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -309,6 +309,15 @@ typedef struct SPICE_ATTR_PACKED QXLFill {
     SpiceQMask mask;
 } QXLFill;
 
+typedef struct SPICE_ATTR_PACKED QXLOpaque {
+    SPICE_ADDRESS src_bitmap;
+    SpiceRect src_area;
+    SpiceBrush brush;
+    uint16_t rop_descriptor;
+    uint8_t scale_mode;
+    SpiceQMask mask;
+} QXLOpaque;
+
 typedef struct SPICE_ATTR_PACKED QXLAlphaBlnd {
     uint16_t alpha_flags;
     uint8_t alpha;
@@ -333,7 +342,7 @@ typedef struct SPICE_ATTR_PACKED QXLCompatDrawable {
     uint32_t mm_time;
     union {
         QXLFill fill;
-        SpiceOpaque opaque;
+        QXLOpaque opaque;
         SpiceCopy copy;
         SpiceTransparent transparent;
         QXLCompatAlphaBlnd alpha_blend;
@@ -362,7 +371,7 @@ typedef struct SPICE_ATTR_PACKED QXLDrawable {
     SpiceRect surfaces_rects[3];
     union {
         QXLFill fill;
-        SpiceOpaque opaque;
+        QXLOpaque opaque;
         SpiceCopy copy;
         SpiceTransparent transparent;
         QXLAlphaBlnd alpha_blend;
-- 
1.6.5.2



More information about the Spice-devel mailing list