mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Snake: Disable double-buffering for the game window.
There's no need to use automatic double-buffering here since we manage the backing store manually.
This commit is contained in:
parent
180de7e8c5
commit
ca9a430965
Notes:
sideshowbarker
2024-07-19 14:38:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ca9a430965f
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ int main(int argc, char** argv)
|
|||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_double_buffering_enabled(false);
|
||||
window->set_title("Snake");
|
||||
window->set_rect(100, 100, 320, 320);
|
||||
|
||||
|
|
Loading…
Reference in a new issue