SFML 2.0
Works perfectly fine on WinXP.
if(Event.Key.Code == sf::Key::Num1)
{
VideoMode videoMode = sf::VideoMode::GetDesktopMode();
ContextSettings windowSettings = sf::ContextSettings(0,0,0);
if(winMode == FULLSCREEN)
{
window->Create(videoMode, "GameEngine", sf::Style::Default|sf::Style::Close, windowSettings);
windowMode = WINDOW;
window->EnableVerticalSync(true);
}
else if(winMode == WINDOW)
{
window->Create(videoMode, "GameEngine", sf::Style::Fullscreen|sf::Style::Close, windowSettings);
windowMode = FULLSCREEN;
window->EnableVerticalSync(true);
}
}