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

WindowServer: Enhance simple shadow function to include optional frame

If the shadow bitmap contains portions of the frame then we need to
slightly tweak the logic dealing with very small width and/or height.
This commit is contained in:
Tom 2021-06-25 09:09:41 -06:00 committed by Andreas Kling
parent b9ad6058aa
commit 42cb38b71a
2 changed files with 21 additions and 10 deletions

View file

@ -118,8 +118,9 @@ public:
void open_menubar_menu(Menu&);
static void paint_simple_rect_shadow(Gfx::Painter&, const Gfx::IntRect&, const Gfx::Bitmap&, bool shadow_includes_frame = false, bool fill_content = false);
private:
void paint_simple_rect_shadow(Gfx::Painter&, const Gfx::IntRect&, const Gfx::Bitmap&) const;
void paint_notification_frame(Gfx::Painter&);
void paint_normal_frame(Gfx::Painter&);
void paint_tool_window_frame(Gfx::Painter&);