{
_stroke_width = width;
_stroke_dash = dash;
-
- _attributes_dirty |= STROKE;
}
/**
}
// Initialize/Update the paint
- if( _attributes_dirty & (STROKE_COLOR | STROKE) )
+ if( _attributes_dirty & STROKE_COLOR )
{
if( _paint == VG_INVALID_HANDLE )
_paint = vgCreatePaint();
- if( _attributes_dirty & STROKE_COLOR )
- vgSetParameterfv(_paint, VG_PAINT_COLOR, 4, _stroke_color);
- if( _attributes_dirty & STROKE )
- {
- vgSetf(VG_STROKE_LINE_WIDTH, _stroke_width);
-
- vgSetfv( VG_STROKE_DASH_PATTERN,
- _stroke_dash.size(),
- _stroke_dash.empty() ? 0 : &_stroke_dash[0] );
- }
+ vgSetParameterfv(_paint, VG_PAINT_COLOR, 4, _stroke_color);
- _attributes_dirty &= ~(STROKE_COLOR | STROKE);
+ _attributes_dirty &= ~STROKE_COLOR;
}
// Initialize/update fill paint
{
mode |= VG_STROKE_PATH;
vgSetPaint(_paint, VG_STROKE_PATH);
+
+ vgSetf(VG_STROKE_LINE_WIDTH, _stroke_width);
+ vgSetfv( VG_STROKE_DASH_PATTERN,
+ _stroke_dash.size(),
+ _stroke_dash.empty() ? 0 : &_stroke_dash[0] );
}
if( _fill )
{
{
PATH = 0x0001,
STROKE_COLOR = PATH << 1,
- STROKE = STROKE_COLOR << 1,
- FILL_COLOR = STROKE << 1,
+ FILL_COLOR = STROKE_COLOR << 1,
FILL = FILL_COLOR << 1
};