mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibGfx/TinyVG: Close polygon path in OutlineFillPolygon
This commit is contained in:
parent
a853f7b133
commit
cf05da131f
1 changed files with 1 additions and 0 deletions
|
@ -436,6 +436,7 @@ ErrorOr<NonnullRefPtr<TinyVGDecodedImageData>> TinyVGDecodedImageData::decode(St
|
|||
polygon.move_to(TRY(reader.read_point()));
|
||||
for (u32 i = 0; i < header.count - 1; i++)
|
||||
polygon.line_to(TRY(reader.read_point()));
|
||||
polygon.close();
|
||||
TRY(draw_commands.try_append(DrawCommand { move(polygon), move(header.fill_style), move(header.line_style), header.line_width }));
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue