SFML community forums

Help => Graphics => Topic started by: ascii on April 07, 2012, 08:49:38 pm

Title: Strange Title Bar Text
Post by: ascii on April 07, 2012, 08:49:38 pm
Hey guys, I know this is a common problem, but having researched it some I still haven't been able to find a fix.  Basically I'm just getting lots of BS characters in my titlebar text.  I initialized my RenderWindow like this:
Code: [Select]
App(sf::VideoMode(ScreenWidth, ScreenHeight, 32), std::string(), sf::Style::Close)For some reason the titlebar text looks like this: http://imageshack.us/photo/my-images/11/photour.png/

So can anyone help me fix this?  Thanks!
Title: Re: Strange Title Bar Text
Post by: Laurent on April 07, 2012, 08:51:18 pm
And what happens if you pass a non-empty title?
Title: Re: Strange Title Bar Text
Post by: ascii on April 07, 2012, 09:09:24 pm
The title I give it appears, but the weird characters still appear to the left of it when I initalized the object like:
Code: [Select]
App(sf::VideoMode(ScreenWidth, ScreenHeight, 32),
  std::string("Snake"), sf::Style::Close),

I'm using Visual Studio 2010, by the way.
Title: Re: Strange Title Bar Text
Post by: Contadotempo on April 07, 2012, 09:45:27 pm
Are you compiling with the debug libraries but using a release configuration in visual studio by any chance (or the other way around)?
Title: Re: Strange Title Bar Text
Post by: ascii on April 07, 2012, 10:41:28 pm
*facepalm*, that fixed it, thanks to both of you!