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:
Andreas Kling 2019-04-20 19:51:10 +02:00
parent 180de7e8c5
commit ca9a430965
Notes: sideshowbarker 2024-07-19 14:38:03 +09:00

View file

@ -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);