Browse Source

Added Context2d::stroke()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
e3be340e3f
  1. 12
      src/CanvasRenderingContext2d.cc

12
src/CanvasRenderingContext2d.cc

@ -1178,6 +1178,18 @@ Context2d::fill() {
: cairo_fill(_context);
}
/*
* Stroke and apply shadow.
*/
void
Context2d::stroke() {
setSourceRGBA(state->stroke);
hasShadow()
? shadow(cairo_stroke)
: cairo_stroke(_context);
}
/*
* Apply shadow with the given draw fn.
*/

Loading…
Cancel
Save