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

Author Topic: Auto-select resolution  (Read 3288 times)

0 Members and 1 Guest are viewing this topic.

aqnuep

  • Newbie
  • *
  • Posts: 7
    • MSN Messenger - aqnuep@hotmail.com
    • Yahoo Instant Messenger - rakos_d@yahoo.com
    • View Profile
Auto-select resolution
« on: March 09, 2010, 08:33:41 pm »
Hi,

I have the problem that my application shall automatically choose resolution. In case 1024x768 is available then it should choose that one or if not than it shall gracefully fall back to 800x600.

Is there an easy way to do this using SFML?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Auto-select resolution
« Reply #1 on: March 09, 2010, 08:35:57 pm »
Look at sf::VideoMode and its static functions.
Laurent Gomila - SFML developer

aqnuep

  • Newbie
  • *
  • Posts: 7
    • MSN Messenger - aqnuep@hotmail.com
    • Yahoo Instant Messenger - rakos_d@yahoo.com
    • View Profile
Auto-select resolution
« Reply #2 on: March 09, 2010, 08:54:10 pm »
Thanks for the quick answer and sorry for the stupid question just it was quite urgent and I didn't have the time to look carefully through the source.

 

anything