diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 01324c1..61ba45d 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/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. */