mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
WindowServer: Make WindowFrame::shadow_bitmap() const
There is no reason for callers to mutate the shadow bitmaps returned by this function.
This commit is contained in:
parent
530360ce77
commit
583fbf7111
Notes:
sideshowbarker
2024-07-18 01:10:20 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/583fbf71115
2 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ void WindowFrame::reload_config()
|
|||
load_shadow(WindowManager::the().palette().tooltip_shadow_path(), s_last_tooltip_shadow_path, s_tooltip_shadow);
|
||||
}
|
||||
|
||||
MultiScaleBitmaps* WindowFrame::shadow_bitmap() const
|
||||
MultiScaleBitmaps const* WindowFrame::shadow_bitmap() const
|
||||
{
|
||||
if (m_window.is_frameless() && !m_window.has_forced_shadow())
|
||||
return nullptr;
|
||||
|
|
|
@ -124,7 +124,7 @@ private:
|
|||
void paint_normal_frame(Gfx::Painter&);
|
||||
void paint_tool_window_frame(Gfx::Painter&);
|
||||
void paint_menubar(Gfx::Painter&);
|
||||
MultiScaleBitmaps* shadow_bitmap() const;
|
||||
MultiScaleBitmaps const* shadow_bitmap() const;
|
||||
Gfx::IntRect inflated_for_shadow(const Gfx::IntRect&) const;
|
||||
|
||||
void handle_menubar_mouse_event(const MouseEvent&);
|
||||
|
|
Loading…
Reference in a new issue