diff options
Diffstat (limited to 'Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp b/Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp index 8359cbaf44..12a2791482 100644 --- a/Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp +++ b/Libraries/LibWeb/DOM/CanvasRenderingContext2D.cpp @@ -165,10 +165,13 @@ void CanvasRenderingContext2D::line_to(float x, float y) m_path.line_to({ x, y }); } -void CanvasRenderingContext2D::stroke() +void CanvasRenderingContext2D::quadratic_curve_to(float cx, float cy, float x, float y) { - dbg() << "stroke path " << m_path; + m_path.quadratic_bezier_curve_to({ cx, cy }, { x, y }); +} +void CanvasRenderingContext2D::stroke() +{ auto painter = this->painter(); if (!painter) return; |