Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Strange Title Bar Text  (Read 2088 times)

0 Members and 1 Guest are viewing this topic.

ascii

  • Newbie
  • *
  • Posts: 8
    • AOL Instant Messenger - 2910+fake+st
    • View Profile
Strange Title Bar Text
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Strange Title Bar Text
« Reply #1 on: April 07, 2012, 08:51:18 pm »
And what happens if you pass a non-empty title?
Laurent Gomila - SFML developer

ascii

  • Newbie
  • *
  • Posts: 8
    • AOL Instant Messenger - 2910+fake+st
    • View Profile
Re: Strange Title Bar Text
« Reply #2 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.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Re: Strange Title Bar Text
« Reply #3 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)?
« Last Edit: April 07, 2012, 09:49:10 pm by Contadotempo »

ascii

  • Newbie
  • *
  • Posts: 8
    • AOL Instant Messenger - 2910+fake+st
    • View Profile
Re: Strange Title Bar Text
« Reply #4 on: April 07, 2012, 10:41:28 pm »
*facepalm*, that fixed it, thanks to both of you!

 

anything