iPhone video modes (iphone 4)

Hello,

what Parameters do I have to give

SDL_Surface * screen=SDL_SetVideoMode() to switch to rertina? Right now passing 960x640 doesnt work and I have no clue why.

I get back a surface which has 960x640 but the current screen I am looking at is still 480x320. What am I doing wrong?

andreas

akr wrote:

Hello,

what Parameters do I have to give

SDL_Surface * screen=SDL_SetVideoMode() to switch to rertina? Right now passing 960x640 doesnt work and I have no clue why.

I get back a surface which has 960x640 but the current screen I am looking at is still 480x320. What am I doing wrong?

andreas

Fixed it. Had to set the SDL_RESIZABLE flag. At latest after rotating my device it switched to Retina. Had to limit my orientations with SDL_HINT_ORIENTATIONS.

Dont forget to set the initial orientation in Xcode also. Puuuh. That was tricky. So it seems that SDL doesnt switch to Retina without SDL_RESIZABLE.