I was preparing a diff for the stencil fix, so I updated SDL 1.3 and found that on iOS, SDL_GetDesktopDisplayMode now returns 768,1024 when the display is rotated, but the version I had returned 1024,768 when rotated.
Can I assume the current way (which is to always give the size as if the screen is NOT rotated, which I believe is what the OS always gives) is the way moving forward?
[>] Brian
Op 2011-10-20 06:12 , Brian Barnes schreef:
I was preparing a diff for the stencil fix, so I updated SDL 1.3 and found that on iOS, SDL_GetDesktopDisplayMode now returns 768,1024 when the display is rotated, but the version I had returned 1024,768 when rotated.
The version you had always returned 1024x768. And the new code returns
what is given by the “boundary” of the UIScreen.
Can I assume the current way (which is to always give the size as if the screen is NOT rotated, which I believe is what the OS always gives) is the way moving forward?
Hopefully, because with the old code I couldn’t get it to
work properly :-)–
Kees