summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}