Hello!
We all saw that every game allows to select a resolution. It looks simple but some questions doesn't give me to sleep.
- How can I obtain available resolutions? Just take the most popular and hardcode?
- I can iterate over available outputs and find supported resolutions as well as sync intervals. But what if the user selected an adapter that is not have any output bounded (actually how does this works at all - I have 2 GPUs, I can switch between them, and I always have a picture, even if a card doesn't have an output)?
- What if the user have several monitors. How should I choose correct one (and should I at all)?
- In Starcraft 2 I noticed that in windowed mode there's no resolution selection at all - I can resize a window and picture scales accordingly. How it is done? Do they have fixed resolution for the windowed mode?