Ported to SFML 2.1