1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

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.
This commit is contained in:
Karol Kosek 2021-07-19 23:57:15 +02:00 committed by Gunnar Beutner
parent 69fd68b1c8
commit fd5bc36fc1

View file

@ -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();