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:
parent
69fd68b1c8
commit
fd5bc36fc1
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue