From 1cb64948521b8412241036387c6507919322497b Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 Feb 2023 16:33:29 +0000 Subject: [PATCH] Chess: Stop trying to read non-existent window-size config value Nobody ever sets this, and it doesn't seem especially useful, so let's remove it. --- Userland/Games/Chess/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Games/Chess/main.cpp b/Userland/Games/Chess/main.cpp index c368ff0a46..498a9074e2 100644 --- a/Userland/Games/Chess/main.cpp +++ b/Userland/Games/Chess/main.cpp @@ -42,11 +42,10 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw")); TRY(Core::System::unveil(nullptr, nullptr)); - auto size = Config::read_i32("Chess"sv, "Display"sv, "size"sv, 512); window->set_title("Chess"); window->set_base_size({ 4, 4 }); window->set_size_increment({ 8, 8 }); - window->resize(size - 4, size - 4); + window->resize(508, 508); window->set_icon(app_icon.bitmap_for_size(16));