1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:07:45 +00:00

LibPDF: Offset PaintStyle when painting so pattern overlaps properly

This commit is contained in:
Kyle Pereira 2023-12-07 13:08:37 +00:00 committed by Andreas Kling
parent 8ff87911a3
commit 8c7fc4fe6c
2 changed files with 13 additions and 0 deletions

View file

@ -173,6 +173,8 @@ private:
Gfx::AffineTransform mutable m_text_rendering_matrix;
HashMap<FontCacheKey, NonnullRefPtr<PDFFont>> m_font_cache;
// Used to offset the PaintStyle's origin when rendering a pattern.
RefPtr<Gfx::PaintStyle> m_original_paint_style;
};
}