From fd5bc36fc15921be43b7b79cddfa495fa2581724 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Mon, 19 Jul 2021 23:57:15 +0200 Subject: [PATCH] Pong: Disable resizing the window The game doesn't handle resize events. It's a pretty lazy fix. The proper way would be to actually allow the game to be resized, with some scaling trickery, but most games here don't do that anyway, so I guess that's good enough. --- Userland/Games/Pong/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Games/Pong/main.cpp b/Userland/Games/Pong/main.cpp index d94a2d9db00..7ad75f83b67 100644 --- a/Userland/Games/Pong/main.cpp +++ b/Userland/Games/Pong/main.cpp @@ -52,6 +52,7 @@ int main(int argc, char** argv) window->set_title("Pong"); window->set_double_buffering_enabled(false); window->set_main_widget(); + window->set_resizable(false); window->show(); auto menubar = GUI::Menubar::construct();