summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-20 19:51:10 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-20 19:51:10 +0200
commitca9a430965f81ac04c33af2c1d3f27b65a501569 (patch)
tree21896b8a3f720d4c54cbe7950673cb382028ed73
parent180de7e8c5ba2d4c4517cf923c98c943c95c2295 (diff)
downloadserenity-ca9a430965f81ac04c33af2c1d3f27b65a501569.zip
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.
-rw-r--r--Games/Snake/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp
index 1ae78b6bfa..cb61cd368e 100644
--- a/Games/Snake/main.cpp
+++ b/Games/Snake/main.cpp
@@ -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);