summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-01 16:07:02 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-01 16:07:02 +0200
commit007d12897362572809dfe523fa30b373c31a28fa (patch)
tree1427ef600ef1d3f557c11263f6db21a2da846690 /common
parent0e16cadc7077d448a5b91be205226620e2bc5191 (diff)
downloadspice-007d12897362572809dfe523fa30b373c31a28fa.tar.gz
spice-007d12897362572809dfe523fa30b373c31a28fa.tar.xz
spice-007d12897362572809dfe523fa30b373c31a28fa.zip
Update for the SpicePath.segments type change
Diffstat (limited to 'common')
-rw-r--r--common/canvas_base.c2
-rw-r--r--common/gdi_canvas.c2
-rw-r--r--common/gl_canvas.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/canvas_base.c b/common/canvas_base.c
index b8a42e67..866b4e63 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -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);
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index c5c74620..52ae0a65 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -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++) {
diff --git a/common/gl_canvas.c b/common/gl_canvas.c
index 10745b4c..3e02a25e 100644
--- a/common/gl_canvas.c
+++ b/common/gl_canvas.c
@@ -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;