summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-07-19 23:57:15 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-20 01:51:11 +0200
commitfd5bc36fc15921be43b7b79cddfa495fa2581724 (patch)
treee68ba1b67dfe1d487c1a4b2e0b1bd55ebd2298a2 /Userland/Games
parent69fd68b1c80b536d2ec360f6fd711f56b6c00fa5 (diff)
downloadserenity-fd5bc36fc15921be43b7b79cddfa495fa2581724.zip
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.
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/Pong/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Games/Pong/main.cpp b/Userland/Games/Pong/main.cpp
index d94a2d9db0..7ad75f83b6 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<Pong::Game>();
+ window->set_resizable(false);
window->show();
auto menubar = GUI::Menubar::construct();