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

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


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

diff --git a/spice/draw.h b/spice/draw.h
index e6fab5c..42cd025 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -106,7 +106,7 @@ typedef struct SPICE_ATTR_PACKED SpiceQMask {
 
 typedef struct SPICE_ATTR_PACKED SpiceFill {
     SpiceBrush brush;
-    uint16_t rop_decriptor;
+    uint16_t rop_descriptor;
     SpiceQMask mask;
 } SpiceFill;
 
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 9d62905..b95f920 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -303,6 +303,12 @@ typedef struct SPICE_ATTR_PACKED QXLCopyBits {
 #define QXL_EFFECT_NOP 6
 #define QXL_EFFECT_OPAQUE_BRUSH 7
 
+typedef struct SPICE_ATTR_PACKED QXLFill {
+    SpiceBrush brush;
+    uint16_t rop_descriptor;
+    SpiceQMask mask;
+} QXLFill;
+
 typedef struct SPICE_ATTR_PACKED QXLAlphaBlnd {
     uint16_t alpha_flags;
     uint8_t alpha;
@@ -326,7 +332,7 @@ typedef struct SPICE_ATTR_PACKED QXLCompatDrawable {
     SpiceClip clip;
     uint32_t mm_time;
     union {
-        SpiceFill fill;
+        QXLFill fill;
         SpiceOpaque opaque;
         SpiceCopy copy;
         SpiceTransparent transparent;
@@ -355,7 +361,7 @@ typedef struct SPICE_ATTR_PACKED QXLDrawable {
     int32_t surfaces_dest[3];
     SpiceRect surfaces_rects[3];
     union {
-        SpiceFill fill;
+        QXLFill fill;
         SpiceOpaque opaque;
         SpiceCopy copy;
         SpiceTransparent transparent;
-- 
1.6.5.2



More information about the Spice-devel mailing list