1
Fork 0
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:
MacDue 2023-07-14 22:55:57 +01:00 committed by Andreas Kling
parent a853f7b133
commit cf05da131f

View file

@ -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;
}