diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-10-27 11:59:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-28 11:23:44 +0200 |
commit | 885ca2f96871e97c914ec9342e940f543f54f121 (patch) | |
tree | fe15c611301c591394a9656de0037485eea87bc9 /Userland/Services/WindowServer/Overlays.cpp | |
parent | cf188df86cbe08428aba24be5fac36f62d539850 (diff) | |
download | serenity-885ca2f96871e97c914ec9342e940f543f54f121.zip |
LibGfx+WindowServer: Move shadow-painting code to StylePainter
Specifically, this is to make it accessible to ThemeEditor, but there's
nothing about it that is especially window-specific.
Diffstat (limited to 'Userland/Services/WindowServer/Overlays.cpp')
-rw-r--r-- | Userland/Services/WindowServer/Overlays.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Overlays.cpp b/Userland/Services/WindowServer/Overlays.cpp index 592ea7a167..46c3279ba8 100644 --- a/Userland/Services/WindowServer/Overlays.cpp +++ b/Userland/Services/WindowServer/Overlays.cpp @@ -7,6 +7,7 @@ #include "Overlays.h" #include "Compositor.h" #include "WindowManager.h" +#include <LibGfx/StylePainter.h> namespace WindowServer { @@ -113,7 +114,7 @@ void RectangularOverlay::render(Gfx::Painter& painter, Screen const& screen) Gfx::Painter bitmap_painter(*new_bitmap); if (auto* shadow_bitmap = WindowManager::the().overlay_rect_shadow()) { - WindowFrame::paint_simple_rect_shadow(bitmap_painter, new_bitmap->rect(), shadow_bitmap->bitmap(scale_factor), true, true); + Gfx::StylePainter::paint_simple_rect_shadow(bitmap_painter, new_bitmap->rect(), shadow_bitmap->bitmap(scale_factor), true, true); } else { bitmap_painter.fill_rect(new_bitmap->rect(), Color(Color::Black).with_alpha(0xcc)); } |