iPhone video modes

Hi,

due to changes during the year my iphone is in a different screen state when I set it to

SDL_SetVideoMode(480x320…) than it was. I get a shrinked blitting in a quarter of the screen only. Beginning of the year
It was fullscreen.

What videomodes are available now on iPhone? How do I get my 480x320 fullscreen set? Thx!

Are you using an iphone with retina display (>=4)? If so you need to
pass double the screen resolution, so SDL_SetVideoMode(960x640…)

This is hitting a lot of people, maybe we should file a feature
request asking for double the resolution when a retina display device
is detected.
Any opinion on this matter?
VittorioOn Sun, Dec 11, 2011 at 12:07 PM, akr <a.kindlbacher at gmx.de> wrote:

Hi,

due to changes during the year my iphone is in a different screen state when
I set it to

SDL_SetVideoMode(480x320…) than it was. I get a shrinked blitting in a
quarter of the screen only. Beginning of the year
It was fullscreen.

What videomodes are available now on iPhone? How do I get my 480x320
fullscreen set? Thx!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Vittorio Giovara wrote:

Are you using an iphone with retina display (>=4)? If so you need to
pass double the screen resolution, so SDL_SetVideoMode(960x640…)

This is hitting a lot of people, maybe we should file a feature
request asking for double the resolution when a retina display device
is detected.
Any opinion on this matter?
Vittorio

Hi,

due to changes during the year my iphone is in a different screen state when
I set it to

SDL_SetVideoMode(480x320…) than it was. I get a shrinked blitting in a
quarter of the screen only. Beginning of the year
It was fullscreen.

What videomodes are available now on iPhone? How do I get my 480x320
fullscreen set? Thx!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Yes that was surprising indeed. I could better answer your question if I would know a screen resolution which fits
to all iphones. I had 480x320 before, fullscreen.
Is there a way to get that mode back?

andreas> On Sun, Dec 11, 2011 at 12:07 PM, akr <@akr> wrote:

I just found this on Google. It might be helpful:

http://immersedcode.org/2011/4/27/sdl-ios-behavior/

Shouldn’t it be possible though, even on Retina displays, to go with the old blocky resolution if you want to?

I also think the old behavior is better, more intuitive.
If I want the Retina-sized resolution, I should ask for it directly.
If I want the 480x320 resolution, SDL should respect my wish and use this resolution.
Better, I think it should accept whatever resolution I asked and scale it to fit to screen. =]
What you think?

Anyway, are you going to file a feature?

RodrigoCard wrote:

Better, I think it should accept whatever resolution I asked and scale it to fit to screen. =]
What you think?

It’d be ugly on an LCD screen if you had to scale it unless it were a
few standard sizes that fit the pixels.

(One of my pet peeves)
Monitor manufacturers made the public believe we all need 1920-1080 :-/
Good luck trying to find a 1920-1200 or better monitor… In the middle
of Silicon Valley no store carries those anymore.

Greetings,
Jeroen–
Earthquake Magnitude: 5.2
Date: Wednesday, January 18, 2012 17:26:02 UTC
Location: Santa Cruz Islands
Latitude: -11.0302; Longitude: 165.4751
Depth: 31.70 km

1920x1200 rocks!
but back on topic, imho on iOS, the resolution should be independent
of the screen size, so when we use a 320x480 resolution, SDL should
scale automatically to 640x960 on retina devices, unless maybe a
SDL_Hint is able to de-activate this behavior (not sure there is a
usecase for this, but maybe because of particular apps with certain
memory constraints)

VittorioOn Wed, Jan 18, 2012 at 10:52 PM, Jeroen van Aart wrote:

RodrigoCard wrote:

Better, I think it should accept whatever resolution I asked and scale it
to fit to screen. =]
What you think?

It’d be ugly on an LCD screen if you had to scale it unless it were a few
standard sizes that fit the pixels.

(One of my pet peeves)
Monitor manufacturers made the public believe we all need 1920-1080 :-/
Good luck trying to find a 1920-1200 or better monitor… In the middle of
Silicon Valley no store carries those anymore.

Greetings,
Jeroen


Earthquake Magnitude: 5.2
Date: Wednesday, January 18, 2012 17:26:02 UTC
Location: Santa Cruz Islands
Latitude: -11.0302; Longitude: 165.4751
Depth: 31.70 km


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

2560x1600 x3 rocks! (my current setup)

Last time I used SDL 1.3 on iOS is too long ago to be relevant, but it seemed to work alright at 320x480 on my iPod Touch 4 at the time…

Would it be appropriate to expose multiple resolutions, including the rotated versions, perhaps as an orientation parameter on the CreateWindow?

Or is this more a matter of querying the system for the resolution and then being able to instantly switch orientation with a separate call, knowing this causes a RESIZE event?

I haven’t really dug into this matter but I’m very interested in the topic.On 01/19/2012 04:28 AM, Vittorio Giovara wrote:

1920x1200 rocks!
but back on topic, imho on iOS, the resolution should be independent
of the screen size, so when we use a 320x480 resolution, SDL should
scale automatically to 640x960 on retina devices, unless maybe a
SDL_Hint is able to de-activate this behavior (not sure there is a
usecase for this, but maybe because of particular apps with certain
memory constraints)

Vittorio

On Wed, Jan 18, 2012 at 10:52 PM, Jeroen van Aart wrote:

RodrigoCard wrote:

Better, I think it should accept whatever resolution I asked and scale it
to fit to screen. =]
What you think?

It’d be ugly on an LCD screen if you had to scale it unless it were a few
standard sizes that fit the pixels.

(One of my pet peeves)
Monitor manufacturers made the public believe we all need 1920-1080 :-/
Good luck trying to find a 1920-1200 or better monitor… In the middle of
Silicon Valley no store carries those anymore.

Greetings,
Jeroen


Earthquake Magnitude: 5.2
Date: Wednesday, January 18, 2012 17:26:02 UTC
Location: Santa Cruz Islands
Latitude: -11.0302; Longitude: 165.4751
Depth: 31.70 km


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier