I'm using the code from the graphics tutorial. I keep getting these strange characters in my title bar.
ÌÌÌÌSFML Test
This is a win32 application (not console.) I've linked sfml-graphics.lib, sfml-main.lib, sfml-window.lib, and sfml-system.lib in that order.
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Test",sf::Window::Fixed);
// Change background color to red
App.SetBackgroundColor(sf::Color(0, 0, 0));
// Start game loop
bool Running = true;
while (Running)
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Close)
Running = false;
// A key has been pressed
if (Event.Type == sf::Event::KeyPressed)
{
// Escape key : exit
if (Event.Key.Code == sf::Key::Escape)
Running = false;
// F1 key : capture a screenshot
if (Event.Key.Code == sf::Key::F1)
{
sf::Image Screen = App.Capture();
Screen.SaveToFile("screenshot.jpg");
}
}
}
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}