diff options
author | Tom <tomut@yahoo.com> | 2021-06-18 19:21:30 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-20 14:57:26 +0200 |
commit | 61af9d882e33ac3c9bec583e4651326cac338b29 (patch) | |
tree | e53a017a375055c2852049c1715296f7215b5e0e /Userland/Services/WindowServer/WindowManager.h | |
parent | aa15bf81e48637cf6365f15f4eaada645eae4040 (diff) | |
download | serenity-61af9d882e33ac3c9bec583e4651326cac338b29.zip |
WindowServer: Load multiple scaled versions of Bitmaps and Cursors
This enables rendering of mixed-scale screen layouts with e.g. high
resolution cursors and window button icons on high-dpi screens while
using lower resolution bitmaps on regular screens.
Diffstat (limited to 'Userland/Services/WindowServer/WindowManager.h')
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.h b/Userland/Services/WindowServer/WindowManager.h index 98e32a5a43..66a3246365 100644 --- a/Userland/Services/WindowServer/WindowManager.h +++ b/Userland/Services/WindowServer/WindowManager.h @@ -224,8 +224,7 @@ public: Gfx::IntPoint get_recommended_window_position(Gfx::IntPoint const& desired); - int compositor_icon_scale() const; - void reload_icon_bitmaps_after_scale_change(bool allow_hidpi_icons = true); + void reload_icon_bitmaps_after_scale_change(); void reevaluate_hovered_window(Window* = nullptr); Window* hovered_window() const { return m_hovered_window.ptr(); } @@ -233,7 +232,7 @@ public: WindowStack& window_stack() { return m_window_stack; } private: - NonnullRefPtr<Cursor> get_cursor(String const& name); + RefPtr<Cursor> get_cursor(String const& name); void process_mouse_event(MouseEvent&); void process_event_for_doubleclick(Window& window, MouseEvent& event); @@ -257,7 +256,6 @@ private: void do_move_to_front(Window&, bool, bool); - bool m_allow_hidpi_icons { true }; RefPtr<Cursor> m_hidden_cursor; RefPtr<Cursor> m_arrow_cursor; RefPtr<Cursor> m_hand_cursor; |