Fixed Window::EnableKeyRepeat on Linux

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1039 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-03-04 18:42:11 +00:00
parent f9e24c6ec5
commit 0adb1c35e0

View File

@ -5,6 +5,7 @@
#include <SFML/Window.hpp> #include <SFML/Window.hpp>
#include <fstream> #include <fstream>
#include <iostream>
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Entry point of application /// Entry point of application
@ -16,7 +17,7 @@ int main()
{ {
// Create the main window // Create the main window
sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window"); sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window");
// Create a clock for measuring the time elapsed // Create a clock for measuring the time elapsed
sf::Clock Clock; sf::Clock Clock;
@ -51,7 +52,7 @@ int main()
// Resize event : adjust viewport // Resize event : adjust viewport
if (Event.Type == sf::Event::Resized) if (Event.Type == sf::Event::Resized)
glViewport(0, 0, Event.Size.Width, Event.Size.Height); glViewport(0, 0, Event.Size.Width, Event.Size.Height);
} }
// Set the active window before using OpenGL commands // Set the active window before using OpenGL commands
// It's useless here because the active window is always the same, // It's useless here because the active window is always the same,