diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-03-24 19:15:16 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-24 20:30:26 +0100 |
commit | 1499d2421e9f95071774f70a56deeee0a65a1eac (patch) | |
tree | 08454f2471c770375b13ec9a1a88eef170dcf463 /Userland/Libraries/LibWeb | |
parent | 05f9146af86dd48af1780a6fc1d11e7888c89c3f (diff) | |
download | serenity-1499d2421e9f95071774f70a56deeee0a65a1eac.zip |
LibWeb: Align text shadows the same way we align text
This makes the shadow line-up correctly on Acid3. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/ShadowPainting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/ShadowPainting.cpp b/Userland/Libraries/LibWeb/Painting/ShadowPainting.cpp index 6942f63773..51b1b0903a 100644 --- a/Userland/Libraries/LibWeb/Painting/ShadowPainting.cpp +++ b/Userland/Libraries/LibWeb/Painting/ShadowPainting.cpp @@ -159,7 +159,7 @@ void paint_text_shadow(PaintContext& context, Layout::LineBoxFragment const& fra Gfx::Painter shadow_painter { *shadow_bitmap }; shadow_painter.set_font(context.painter().font()); // FIXME: "Spread" the shadow somehow. - shadow_painter.draw_text(text_rect, fragment.text(), Gfx::TextAlignment::TopLeft, layer.color); + shadow_painter.draw_text(text_rect, fragment.text(), Gfx::TextAlignment::CenterLeft, layer.color); // Blur Gfx::FastBoxBlurFilter filter(*shadow_bitmap); |