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

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.
This commit is contained in:
Liav A 2020-02-27 17:09:41 +02:00 committed by Andreas Kling
parent 8dbd1cb9fb
commit 151f32b827
8 changed files with 46 additions and 21 deletions

View file

@ -40,7 +40,7 @@ public:
Screen(unsigned width, unsigned height);
~Screen();
void set_resolution(int width, int height);
bool set_resolution(int width, int height);
bool can_set_buffer() { return m_can_set_buffer; }
void set_buffer(int index);