diff options
author | Hüseyin ASLITÜRK <asliturk@hotmail.com> | 2020-01-31 00:14:31 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 15:08:37 +0100 |
commit | c5edc09b785f7f4b6696948b29bf985eda064a61 (patch) | |
tree | b9ab02f599f8691859d4f941f7f2f8c464b1813f | |
parent | 2ed660490d54f250e7e83e276f023a0ad2610917 (diff) | |
download | serenity-c5edc09b785f7f4b6696948b29bf985eda064a61.zip |
WindowServer: Fix for Changing Screen Resolution Resets.
Fixes #816.
-rw-r--r-- | Servers/WindowServer/WSCompositor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Servers/WindowServer/WSCompositor.cpp b/Servers/WindowServer/WSCompositor.cpp index 6b1ffcccff..2541a2fdc2 100644 --- a/Servers/WindowServer/WSCompositor.cpp +++ b/Servers/WindowServer/WSCompositor.cpp @@ -397,8 +397,7 @@ void WSCompositor::set_resolution(int desired_width, int desired_height) auto screen_rect = WSScreen::the().rect(); if (screen_rect.width() == desired_width && screen_rect.height() == desired_height) return; - m_wallpaper_path = {}; - m_wallpaper = nullptr; + // Make sure it's impossible to set an invalid resolution ASSERT(desired_width >= 640 && desired_height >= 480); WSScreen::the().set_resolution(desired_width, desired_height); |