Re: [AD] Last iphone patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
It already has the scale as 2 by default on ip(od|hone)4. Maybe
I wasn't making sense in the documentation. So if you create a
640x960 screen on iphone4 you'll get the full res. This function
allows you to change that, but it's manual. If you want 320x480
you have to set the scale to 1 and use 320, 480 when calling
al_create_display. I suppose we could eliminate the function
altogether but there may be cases (can't think of any right now)
where you want a scale that doesn't map to the same resolution
as 320x480*scale.
--
Trent Gamblin
On 2010-12-03, at 10:53 AM, Elias Pschernig wrote:
> On Fri, 2010-12-03 at 10:41 -0700, Trent Gamblin wrote:
>> I think it may be a good idea to include revision 13973 in 5.0.
>> It's a fairly minor change, it just adds two functions. The
>> multitasking function (al_iphone_program_has_halted) is necessary,
>> you can't get an app into the App Store these days withoutout it
>> AFAIK. The other is almost as crucial. It allows using the full
>> resolution of iPhone 4 and iPod Touch 4 devices. Just about every
>> app being made now makes use of the full resolution on those
>> devices.
>>
>
> How hard would it be automatically using the 640x960 resolution when the
> device supports it? I don't see much use in having to call
> al_iphone_override_screen_scale. The function could still be useful if
> you actually want to use a lower resolution but it seems if I create a
> display (with dimensions > 320x480) and the device supports 640x960
> resolution it's quite clear that I don't want to use 320x480.
>
> But then, I actually do have an ipod 4 so I guess I should look at this
> myself. Just don't know if I'll find much time before xmas.
>
> --
> Elias Pschernig <elias.pschernig@xxxxxxxxxx>