diff options
author | Nico Weber <thakis@chromium.org> | 2021-07-09 21:09:58 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-10 18:51:14 +0100 |
commit | 8cf348c14c217145f43efd8b54ddf39b165fb04d (patch) | |
tree | d6eabe0aea0b10cec6b52be86e1ac20e9923df1e /Userland/Utilities/chres.cpp | |
parent | 9b0ff229e378bc7b01758ba3f094eeb46d75625a (diff) | |
download | serenity-8cf348c14c217145f43efd8b54ddf39b165fb04d.zip |
chres: Unbreak scale factor setting after aa15bf81e48637
Diffstat (limited to 'Userland/Utilities/chres.cpp')
-rw-r--r-- | Userland/Utilities/chres.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Utilities/chres.cpp b/Userland/Utilities/chres.cpp index 7e2506d0d2..27a77e7c90 100644 --- a/Userland/Utilities/chres.cpp +++ b/Userland/Utilities/chres.cpp @@ -13,7 +13,7 @@ int main(int argc, char** argv) int screen = -1; int width = -1; int height = -1; - int scale = 1; + int scale = -1; Core::ArgsParser args_parser; args_parser.set_general_help("Change the screen resolution."); @@ -33,6 +33,8 @@ int main(int argc, char** argv) } auto& main_screen = screen_layout.screens[screen]; main_screen.resolution = { width, height }; + if (scale != -1) + main_screen.scale_factor = scale; auto set_result = GUI::WindowServerConnection::the().set_screen_layout(screen_layout, true); if (!set_result.success()) { warnln("failed to set resolution: {}", set_result.error_msg()); |