summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-01 16:33:29 +0000
committerAndreas Kling <kling@serenityos.org>2023-02-02 14:52:21 +0100
commit1cb64948521b8412241036387c6507919322497b (patch)
tree9ca4801b7a053c230e04efae738d1cc635b811ac /Userland
parentd3953c6b733f7306c42950ba97622c532a1c62a3 (diff)
downloadserenity-1cb64948521b8412241036387c6507919322497b.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Games/Chess/main.cpp3
1 files changed, 1 insertions, 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<int> 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));