mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
parent
2ed660490d
commit
c5edc09b78
Notes:
sideshowbarker
2024-07-19 09:41:56 +09:00
Author: https://github.com/asliturk
Commit: c5edc09b78
Pull-request: https://github.com/SerenityOS/serenity/pull/1152
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue