mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05: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
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ int main(int argc, char** argv)
|
||||||
GApplication app(argc, argv);
|
GApplication app(argc, argv);
|
||||||
|
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
|
window->set_double_buffering_enabled(false);
|
||||||
window->set_title("Snake");
|
window->set_title("Snake");
|
||||||
window->set_rect(100, 100, 320, 320);
|
window->set_rect(100, 100, 320, 320);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue