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
Notes: sideshowbarker 2024-07-19 17:24:18 +09:00

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