summaryrefslogtreecommitdiff
path: root/spice
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-06-23 17:49:22 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-06-29 12:29:45 +0200
commit772fa958a73269ca0a60427110b9955dc8ee9b57 (patch)
treee12278cafb1753110661f317b2082d68350decb6 /spice
parent30f1ed5dc6158f502052fcc9c7aa6c0812cde832 (diff)
qxl abi: add QXLBrush
Diffstat (limited to 'spice')
-rw-r--r--spice/qxl_dev.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index c1b25c2..261000c 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -303,6 +303,14 @@ typedef struct SPICE_ATTR_PACKED QXLCopyBits {
#define QXL_EFFECT_NOP 6
#define QXL_EFFECT_OPAQUE_BRUSH 7
+typedef struct SPICE_ATTR_PACKED QXLBrush {
+ uint32_t type;
+ union {
+ uint32_t color;
+ SpicePattern pattern;
+ } u;
+} QXLBrush;
+
typedef struct SPICE_ATTR_PACKED QXLQMask {
uint8_t flags;
SpicePoint pos;
@@ -310,7 +318,7 @@ typedef struct SPICE_ATTR_PACKED QXLQMask {
} QXLQMask;
typedef struct SPICE_ATTR_PACKED QXLFill {
- SpiceBrush brush;
+ QXLBrush brush;
uint16_t rop_descriptor;
QXLQMask mask;
} QXLFill;
@@ -318,7 +326,7 @@ typedef struct SPICE_ATTR_PACKED QXLFill {
typedef struct SPICE_ATTR_PACKED QXLOpaque {
QXLPHYSICAL src_bitmap;
SpiceRect src_area;
- SpiceBrush brush;
+ QXLBrush brush;
uint16_t rop_descriptor;
uint8_t scale_mode;
QXLQMask mask;
@@ -355,7 +363,7 @@ typedef struct SPICE_ATTR_PACKED QXLCompatAlphaBlnd {
typedef struct SPICE_ATTR_PACKED QXLRop3 {
QXLPHYSICAL src_bitmap;
SpiceRect src_area;
- SpiceBrush brush;
+ QXLBrush brush;
uint8_t rop3;
uint8_t scale_mode;
QXLQMask mask;
@@ -364,7 +372,7 @@ typedef struct SPICE_ATTR_PACKED QXLRop3 {
typedef struct SPICE_ATTR_PACKED QXLStroke {
QXLPHYSICAL path;
SpiceLineAttr attr;
- SpiceBrush brush;
+ QXLBrush brush;
uint16_t fore_mode;
uint16_t back_mode;
} QXLStroke;
@@ -372,8 +380,8 @@ typedef struct SPICE_ATTR_PACKED QXLStroke {
typedef struct SPICE_ATTR_PACKED QXLText {
QXLPHYSICAL str;
SpiceRect back_area;
- SpiceBrush fore_brush;
- SpiceBrush back_brush;
+ QXLBrush fore_brush;
+ QXLBrush back_brush;
uint16_t fore_mode;
uint16_t back_mode;
} QXLText;