1al_iphone_override_screen_scLailber(a3r)y FunctionsaMla_niupahlone_override_screen_scale(3)
2
3
4
6 al_iphone_override_screen_scale
7
9 #include <allegro5/allegro_iphone.h>
10
11 void al_iphone_override_screen_scale(float scale)
12
14 Original iPhones and iPod Touches had a screen resolution of 320x480
15 (in Portrait mode). When the iPhone 4 and iPod Touch 4th generation
16 devices came out, they were backwards compatible with all old iPhone
17 apps. This means that they assume a 320x480 screen resolution by
18 default, while they actually have a 640x960 pixel screen (exactly 2x on
19 each dimension). An API was added to allow access to the full (or in
20 fact any fraction of the) resolution of the new devices. This function
21 is normally not needed, as in the case when you want a scale of 2.0 for
22 “retina display” resolution (640x960). In that case you would just
23 call al_create_display with the larger width and height parameters. It
24 is not limited to 2.0 scaling factors however. You can use 1.5 or 0.5
25 or other values in between, however if it's not an exact multiple of
26 the original iPhone resolution, linear filtering will be applied to the
27 final image.
28
29 This function should be called BEFORE calling al_create_display.
30
31
32
33Allegro reference manual al_iphone_override_screen_scale(3)