Don’t worry about calculating exact aspect ratios. There is no need, but if you do it’s best to use the division result to visualize the aspect ratio e.g. 16:9 = 1.77777, 4:3 = 1.3333. The great thing about this technique is that you will never see black bars no matter what the actual aspect ratio of the device is. One very important part of this is that you MUST use 480x320 (or multiples of it) as the display with and height in your config.lua. When I have time I’ll make a detailed blog post explaining exactly what’s going on.
PS: There are actually some limitations on what aspect ratios are supported with the recommended 1140x720 resolution, but anything whose aspect ratio is between 1.333 and 1.78 will work perfectly.
PS2: You never see the whole (fullscreen background) image on any device available today so calculating the image’s aspect ratio won’t do anything for you. On devices with wider screens you won’t see the bottom and top parts of the images, and on devices with shorter screens (3:2, 4:3) you won’t see the sides of the image. [import]uid: 61899 topic_id: 23200 reply_id: 113964[/import]