mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Update for the SpicePath.segments type change
This commit is contained in:
parent
0e16cadc70
commit
007d128973
@ -3180,7 +3180,7 @@ static void canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox,
|
||||
CANVAS_ERROR("invalid brush type");
|
||||
}
|
||||
|
||||
seg = stroke->path->segments;
|
||||
seg = (SpicePathSeg*)stroke->path->segments;
|
||||
|
||||
stroke_lines_init(&lines);
|
||||
|
||||
|
||||
@ -310,7 +310,7 @@ uint32_t raster_ops[] = {
|
||||
|
||||
static void set_path(GdiCanvas *canvas, SpicePath *s)
|
||||
{
|
||||
SpicePathSeg* seg = s->segments;
|
||||
SpicePathSeg* seg = (SpicePathSeg*)s->segments;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < s->num_segments; i++) {
|
||||
|
||||
@ -115,7 +115,7 @@ static GLCPath get_path(GLCanvas *canvas, SpicePath *s)
|
||||
{
|
||||
GLCPath path = glc_path_create(canvas->glc);
|
||||
int i;
|
||||
SpicePathSeg* seg = s->segments;
|
||||
SpicePathSeg* seg = (SpicePathSeg*)s->segments;
|
||||
|
||||
for (i = 0; i < s->num_segments; i++) {
|
||||
uint32_t flags = seg->flags;
|
||||
|
||||
@ -182,7 +182,7 @@ static SpicePath *red_get_path(RedMemSlotInfo *slots, int group_id,
|
||||
|
||||
start = (QXLPathSeg*)data;
|
||||
end = (QXLPathSeg*)(data + size);
|
||||
seg = red->segments;
|
||||
seg = (SpicePathSeg*)red->segments;
|
||||
n_segments = 0;
|
||||
mem_size2 = sizeof(*red);
|
||||
while (start < end) {
|
||||
|
||||
@ -2296,8 +2296,8 @@ static int is_equal_path(RedWorker *worker, SpicePath *path1, SpicePath *path2)
|
||||
if (path1->num_segments != path2->num_segments)
|
||||
return FALSE;
|
||||
|
||||
seg1 = &path1->segments[0];
|
||||
seg2 = &path2->segments[0];
|
||||
seg1 = (SpicePathSeg*)&path1->segments[0];
|
||||
seg2 = (SpicePathSeg*)&path2->segments[0];
|
||||
for (i = 0; i < path1->num_segments; i++) {
|
||||
if (seg1->flags != seg2->flags ||
|
||||
seg1->count != seg2->count) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user