diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-05-26 21:16:25 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-17 11:21:03 +0200 |
commit | ef8a8dae07f400f2573fc6f507bd98c6815d816e (patch) | |
tree | a6bf0e9590c62a5dd0e583463e7c4dd50399a1ac | |
parent | 1d1792c217bee2f7aed28cbee60fc170bb56ecae (diff) | |
download | spice-ef8a8dae07f400f2573fc6f507bd98c6815d816e.tar.gz spice-ef8a8dae07f400f2573fc6f507bd98c6815d816e.tar.xz spice-ef8a8dae07f400f2573fc6f507bd98c6815d816e.zip |
There are multiple line attribute flags enums, use only one
-rw-r--r-- | common/gdi_canvas.c | 4 | ||||
-rw-r--r-- | common/gl_canvas.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index d01d9cde..20113fe1 100644 --- a/common/gdi_canvas.c +++ b/common/gdi_canvas.c @@ -1799,10 +1799,10 @@ static void gdi_canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox, S SetMiterLimit(canvas->dc, (FLOAT)fix_to_double(stroke->attr.miter_limit), &old_miter); #endif - if (stroke->attr.flags & SPICE_LINE_ATTR_STYLED) { + if (stroke->attr.flags & SPICE_LINE_FLAGS_STYLED) { user_style = gdi_get_userstyle(canvas, stroke->attr.style_nseg, stroke->attr.style, - !!(stroke->attr.flags & SPICE_LINE_ATTR_STARTGAP)); + !!(stroke->attr.flags & SPICE_LINE_FLAGS_START_WITH_GAP)); hpen = ExtCreatePen(PS_GEOMETRIC | ps_join | line_cap | PS_USERSTYLE, (uint32_t)fix_to_double(stroke->attr.width), &logbrush, stroke->attr.style_nseg, (DWORD *)user_style); diff --git a/common/gl_canvas.c b/common/gl_canvas.c index f98c72a0..00caf89e 100644 --- a/common/gl_canvas.c +++ b/common/gl_canvas.c @@ -630,8 +630,8 @@ static void gl_canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox, Sp set_op(canvas, stroke->fore_mode); set_brush(canvas, &stroke->brush); - if (stroke->attr.flags & SPICE_LINE_ATTR_STYLED) { - WARN("SPICE_LINE_ATTR_STYLED"); + if (stroke->attr.flags & SPICE_LINE_FLAGS_STYLED) { + WARN("SPICE_LINE_FLAGS_STYLED"); } glc_set_line_width(canvas->glc, fix_to_double(stroke->attr.width)); |