summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-06-30 22:18:36 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-02 16:47:28 +0200
commit92c678220936c88b3f66b6687aa2d969736aa896 (patch)
tree6250f517f17c6a410048db92dc4337774685d9a5
parenta1262cc6118f8fe778d9f90ae59b228cc5be680f (diff)
Update SpiceString to use an array of pointers for glyphs
-rw-r--r--spice/draw.h10
-rw-r--r--spice/qxl_dev.h8
2 files changed, 10 insertions, 8 deletions
diff --git a/spice/draw.h b/spice/draw.h
index d617b30..0eeca0f 100644
--- a/spice/draw.h
+++ b/spice/draw.h
@@ -271,20 +271,14 @@ typedef struct SPICE_ATTR_PACKED SpiceRasterGlyph {
uint8_t data[0];
} SpiceRasterGlyph;
-typedef struct SPICE_ATTR_PACKED SpiceVectorGlyph {
- SpicePoint render_pos;
- uint32_t data_size;
- uint8_t data[0]; //SpicePathSeg[]
-} SpiceVectorGlyph;
-
typedef struct SPICE_ATTR_PACKED SpiceString {
uint16_t length;
uint16_t flags;
- uint8_t data[0];
+ SpiceRasterGlyph *glyphs[0];
} SpiceString;
typedef struct SPICE_ATTR_PACKED SpiceText {
- SPICE_ADDRESS str;
+ SpiceString *str;
SpiceRect back_area;
SpiceBrush fore_brush;
SpiceBrush back_brush;
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 47f0ce7..353f2bb 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -305,6 +305,14 @@ enum {
QXL_DRAW_ALPHA_BLEND,
};
+typedef struct SPICE_ATTR_PACKED QXLRasterGlyph {
+ QXLPoint render_pos;
+ QXLPoint glyph_origin;
+ uint16_t width;
+ uint16_t height;
+ uint8_t data[0];
+} QXLRasterGlyph;
+
typedef struct SPICE_ATTR_PACKED QXLString {
uint32_t data_size;
uint16_t length;