mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03: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: https://github.com/SerenityOS/serenity/commit/fd5bc36fc15 Pull-request: https://github.com/SerenityOS/serenity/pull/8896
@ -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…
Reference in New Issue
Block a user