summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Font/PathRasterizer.cpp
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-01-05 11:17:47 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-05 13:50:26 +0100
commiteeb6072f155470b4b47d2eb2ff64a7919a707cf1 (patch)
treebbc5adf813ea096d3dc9347de25819aa92cf79b7 /Userland/Libraries/LibGfx/Font/PathRasterizer.cpp
parent6c850889525867949403c06c8b844ef70143a6f3 (diff)
downloadserenity-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.cpp2
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()