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());