1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

LibGfx+LibPDF: Apply subpixel offset in affine transformation

This commit is contained in:
MacDue 2023-01-05 11:17:47 +00:00 committed by Andreas Kling
parent 6c85088952
commit eeb6072f15
6 changed files with 15 additions and 15 deletions

View file

@ -20,7 +20,7 @@ PathRasterizer::PathRasterizer(Gfx::IntSize size)
void PathRasterizer::draw_path(Gfx::Path& path)
{
for (auto& line : path.split_lines())
draw_line(line.from.translated(translation()), line.to.translated(translation()));
draw_line(line.from, line.to);
}
RefPtr<Gfx::Bitmap> PathRasterizer::accumulate()