From 2e5c434e22c8f03ebbb16a95c9e8bc88b2a76500 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 15 Aug 2020 17:24:05 +0200 Subject: Misc: Use automatic window positioning in more applications This is a follow up to #2936 / d3e3b4ae56aa79d9bde12ca1f143dcf116f89a4c. Affected programs: - Applications: Browser (Download, View source, Inspect DOM tree, JS console), Terminal (Settings) - Demos: Cube, Eyes, Fire, HelloWorld, LibGfxDemo, WebView, WidgetGallery - DevTools: HackStudio, Inspector, Profiler - Games: 2048, Minesweeper, Snake, Solitaire - Userland: test-web A few have been left out where manual positioning is done on purpose, e.g. ClipboardManager (to be close to the menu bar) or VisualBuilder (to preserve alignment of the multiple application windows). --- Games/Snake/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Games/Snake') diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp index 6abc482e66..31c6fcf94a 100644 --- a/Games/Snake/main.cpp +++ b/Games/Snake/main.cpp @@ -53,7 +53,7 @@ int main(int argc, char** argv) window->set_double_buffering_enabled(false); window->set_title("Snake"); - window->set_rect(100, 100, 320, 320); + window->resize(320, 320); auto& game = window->set_main_widget(); -- cgit v1.2.3