Update for the SpicePath.segments type change

This commit is contained in:
Alexander Larsson 2010-07-01 16:07:02 +02:00
parent 0e16cadc70
commit 007d128973
5 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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++) {

View File

@ -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;

View File

@ -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) {

View File

@ -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) {