Just popping in
|
Right, -1 is a valid return value, allowing any resolution to be used, but then the application can't really know what resolution is valid and what's not and i don't see any other way in the sdl api.
In our case, and especially in fullscreen mode, it's a good idea to return the list of available screenmodes to avoid any weird (too small or too large) display, because, as far as i know, OS4 can't create dynamically new screenmodes.
And in window mode, it's still an issue as well, because it should only list resolutions inferior to the wb screen resolution, which the application can't retrieve using only SDL api.
So, as you see, hardcoding resolutions and praying that they are really available is certainly not the best idea.
|