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

Author Topic: Fullscreen problem  (Read 3476 times)

0 Members and 1 Guest are viewing this topic.

Lorcatar

  • Newbie
  • *
  • Posts: 5
    • View Profile
Fullscreen problem
« on: January 11, 2015, 04:54:05 am »
The following is fine
   
    sf::RenderWindow window(sf::VideoMode(600, 600),
                "SFML WORKS!", sf::Style::Fullscreen);



However the following is not fine. (resolution changed)
        sf::RenderWindow window(sf::VideoMode(1024, 768),
                "SFML WORKS!", sf::Style::Fullscreen);

The second one doesn't create a true fullscreen window. There is actually the windows explorer showing at the bottom, and all the icons are fully functional. What is the problem? Am I limited to a 1x1 aspect ratio when using sfml?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Fullscreen problem
« Reply #1 on: January 11, 2015, 09:54:48 am »
Is your mode valid? (sf::VideoMode::isValid())

Use sf::VideoMode::getFullscreenModes() to get the list of valid settings.
SFML / OS X developer

Lorcatar

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Fullscreen problem
« Reply #2 on: January 11, 2015, 08:27:02 pm »
Is your mode valid? (sf::VideoMode::isValid())

Use sf::VideoMode::getFullscreenModes() to get the list of valid settings.

Thank you, that solved the issue.
        std::vector<sf::VideoMode> i = sf::VideoMode::getFullscreenModes();
        sf::RenderWindow window(i.front(), "SFML WORKS!", sf::Style::Fullscreen);

 

anything