summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-29 16:39:33 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-29 16:39:33 +0100
commitbb74d265b5b0858f2fb5bcc0c7c16ff658e698ca (patch)
treeac6f0a33a04d0528de1b45d6698ee6fd64ee7372
parent1737d135e358f4f5c4be1e2895d8f0ad667dec3c (diff)
Move vsync setting to create_window.
-rw-r--r--application.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/application.cpp b/application.cpp
index 1ab1333..3bf646b 100644
--- a/application.cpp
+++ b/application.cpp
@@ -17,6 +17,7 @@ Application::~Application() {
void Application::create_window(unsigned int w, unsigned int h, bool fs) {
window->Create(sf::VideoMode(w, h, 32), "Foo", sf::Style::Resize | sf::Style::Close | (fs ? sf::Style::Fullscreen : 0));
+ window->UseVerticalSync(true);
}
void Application::init_window(unsigned int w, unsigned int h, bool fs) {
@@ -24,8 +25,6 @@ void Application::init_window(unsigned int w, unsigned int h, bool fs) {
window = renderwindow;
create_window(w, h, fs);
- window->UseVerticalSync(true);
-
input_backend = &window->GetInput();
}