diff options
author | MacDue <macdue@dueutil.tech> | 2023-01-05 11:17:47 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-05 13:50:26 +0100 |
commit | eeb6072f155470b4b47d2eb2ff64a7919a707cf1 (patch) | |
tree | bbc5adf813ea096d3dc9347de25819aa92cf79b7 /Userland/Libraries/LibGfx/Font/PathRasterizer.cpp | |
parent | 6c850889525867949403c06c8b844ef70143a6f3 (diff) | |
download | serenity-eeb6072f155470b4b47d2eb2ff64a7919a707cf1.zip |
LibGfx+LibPDF: Apply subpixel offset in affine transformation
Diffstat (limited to 'Userland/Libraries/LibGfx/Font/PathRasterizer.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/Font/PathRasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Font/PathRasterizer.cpp b/Userland/Libraries/LibGfx/Font/PathRasterizer.cpp index 094adff4a8..33be245d67 100644 --- a/Userland/Libraries/LibGfx/Font/PathRasterizer.cpp +++ b/Userland/Libraries/LibGfx/Font/PathRasterizer.cpp @@ -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() |