diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 16:04:08 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 16:04:08 +0100 |
commit | 15fb917f28505539b05b9b21de0aae7055a5ab2e (patch) | |
tree | 3a64297ee2ee684aa03ce095bede85dadb953b31 /WindowServer | |
parent | 2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (diff) | |
download | serenity-15fb917f28505539b05b9b21de0aae7055a5ab2e.zip |
Convert more RetainPtr use to Retained.
Diffstat (limited to 'WindowServer')
-rw-r--r-- | WindowServer/WSWindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index aa7cb2e783..b21a2245fc 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -364,7 +364,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window) m_back_painter->draw_text(titlebar_title_rect, window.title(), TextAlignment::CenterLeft, title_color); if (!s_close_button_bitmap) - s_close_button_bitmap = CharacterBitmap::create_from_ascii(s_close_button_bitmap_data, s_close_button_bitmap_width, s_close_button_bitmap_height).leak_ref(); + s_close_button_bitmap = &CharacterBitmap::create_from_ascii(s_close_button_bitmap_data, s_close_button_bitmap_width, s_close_button_bitmap_height).leak_ref(); m_back_painter->fill_rect_with_gradient(close_button_rect.shrunken(2, 2), Color::LightGray, Color::White); |