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:
parent
6c85088952
commit
eeb6072f15
6 changed files with 15 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue