mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +00:00
LibWeb: Implicitly close all subpaths when canvas.fill() is called
This commit is contained in:
parent
6f15f23a40
commit
ce36071447
1 changed files with 3 additions and 1 deletions
|
@ -185,7 +185,9 @@ void CanvasRenderingContext2D::fill(Gfx::Painter::WindingRule winding)
|
||||||
if (!painter)
|
if (!painter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
painter->fill_path(m_path, m_fill_style, winding);
|
auto path = m_path;
|
||||||
|
path.close_all_subpaths();
|
||||||
|
painter->fill_path(path, m_fill_style, winding);
|
||||||
}
|
}
|
||||||
|
|
||||||
RefPtr<ImageData> CanvasRenderingContext2D::create_image_data(JS::GlobalObject& global_object, int width, int height) const
|
RefPtr<ImageData> CanvasRenderingContext2D::create_image_data(JS::GlobalObject& global_object, int width, int height) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue