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

Author Topic: Window Style  (Read 6350 times)

0 Members and 1 Guest are viewing this topic.

Pwndja

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Window Style
« on: September 18, 2007, 08:39:12 am »
When I pass sf::Window::Fullscreen to the window constructor I get this message in the console window 'the requested video  is not available, switching to a valid mode' but then it goes to fullscreen mode. I was wondering if there is something i am doing wrong to get this message. here is the code section

sf::RenderWindow window( sf::VideoMode( 1280, 750 ), "Map Editer", sf::Window::Fullscreen );

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Window Style
« Reply #1 on: September 18, 2007, 09:00:53 am »
1280x750 is not a valid fullscreen mode.
Try 1280x1024, 1024x768, 800x600, ...
You can even get the list of valid modes for your system, read the tutorials to know how to do it.

Quote
I get this message in the console window 'the requested video is not available, switching to a valid mode' but then it goes to fullscreen mode

It means that it switches to a valid fullscreen mode (you requested fullscreen, so it just keeps it).
Laurent Gomila - SFML developer

 

anything