mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-08-07 21:01:30 +00:00
Update SpiceString to use an array of pointers for glyphs
This commit is contained in:
parent
a1262cc611
commit
92c6782209
10
spice/draw.h
10
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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user