diff options
author | Liav A <liavalb@gmail.com> | 2020-02-27 17:09:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 12:16:05 +0100 |
commit | 151f32b827d779ba0d19f1a38b79350621d8e0f9 (patch) | |
tree | b1c21053be5c758882b846418be9dba96e62badd /Servers/WindowServer/WindowManager.h | |
parent | 8dbd1cb9fb22c134050ab09550363abdd2c58927 (diff) | |
download | serenity-151f32b827d779ba0d19f1a38b79350621d8e0f9.zip |
WindowServer: Return richer result when changing resolutions
Now we return a boolean value from set_resolution() in the Compositor
and Screen class. Also, the WindowServer IPC now returns a richer result
after changing the resolution, which can be used in clients later.
Diffstat (limited to 'Servers/WindowServer/WindowManager.h')
-rw-r--r-- | Servers/WindowServer/WindowManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Servers/WindowServer/WindowManager.h b/Servers/WindowServer/WindowManager.h index 4d198bf0a8..b1dc349589 100644 --- a/Servers/WindowServer/WindowManager.h +++ b/Servers/WindowServer/WindowManager.h @@ -141,7 +141,8 @@ public: const Gfx::Font& font() const; const Gfx::Font& window_title_font() const; - void set_resolution(int width, int height); + bool set_resolution(int width, int height); + Gfx::Size resolution() const; void set_active_window(Window*); void set_hovered_button(Button*); |