From 0adb1c35e00066cdaf77e62e3bd24be7ad0b200a Mon Sep 17 00:00:00 2001 From: laurentgom Date: Wed, 4 Mar 2009 18:42:11 +0000 Subject: [PATCH] Fixed Window::EnableKeyRepeat on Linux git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1039 4e206d99-4929-0410-ac5d-dfc041789085 --- samples/window/Window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/window/Window.cpp b/samples/window/Window.cpp index 0f457413b..8326a41cd 100644 --- a/samples/window/Window.cpp +++ b/samples/window/Window.cpp @@ -5,6 +5,7 @@ #include #include +#include //////////////////////////////////////////////////////////// /// Entry point of application @@ -16,7 +17,7 @@ int main() { // Create the main window sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window"); - + // Create a clock for measuring the time elapsed sf::Clock Clock; @@ -51,7 +52,7 @@ int main() // Resize event : adjust viewport if (Event.Type == sf::Event::Resized) glViewport(0, 0, Event.Size.Width, Event.Size.Height); - } + } // Set the active window before using OpenGL commands // It's useless here because the active window is always the same,