diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-05-26 21:16:25 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:43 +0100 |
commit | 7e8a81f49f08a91166daaa7f69fa2c5bc740b71f (patch) | |
tree | eb0f8f72a8745b30eb3ec1cc273ebc24388ee7f8 /common | |
parent | d4361e12d0e876a67179e70a1a7d2223854d3c1a (diff) | |
download | spice-common-7e8a81f49f08a91166daaa7f69fa2c5bc740b71f.tar.gz spice-common-7e8a81f49f08a91166daaa7f69fa2c5bc740b71f.tar.xz spice-common-7e8a81f49f08a91166daaa7f69fa2c5bc740b71f.zip |
There are multiple line attribute flags enums, use only one
Diffstat (limited to 'common')
-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 d01d9cd..20113fe 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 f98c72a..00caf89 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)); |