mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +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
Notes:
sideshowbarker
2024-07-19 17:24:18 +09:00
Author: https://github.com/krkk
Commit: fd5bc36fc1
Pull-request: https://github.com/SerenityOS/serenity/pull/8896
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