Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / getdisplayaspect() doesn't work on 5th gen iPod

Author
Message
Lavaflyer
12
Years of Service
User Offline
Joined: 2nd Jul 2012
Location: Wisconsin, U.S.
Posted: 27th Oct 2012 02:14 Edited at: 27th Oct 2012 02:58
getdisplayaspect() doesn't work on my new iPod Touch 5th Generation (I tried it in 1076 and 1082). The function returns .66666666666666666666666667 which is the aspect ratio of the older iPods/iPhones, the newer iPod Touch (5G) should be returning .5625 (9-width/16-height) but it isn't. Please fix in 108 devs. Thanks!

Edit: The reason I need getdisplayaspect() to work is so that I can determine if the user has a larger screened iPod and adjust the graphics/virtual resolution.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 27th Oct 2012 20:32
What device width and height get displayed when you use the GetDeviceWidth/Height commands? Try them and see if the ratio reported is the same as what you'd calculate from those two values.

Cheers,
Ancient Lady
AGK Community Tester
Lavaflyer
12
Years of Service
User Offline
Joined: 2nd Jul 2012
Location: Wisconsin, U.S.
Posted: 28th Oct 2012 02:51
Same result .66666667 when the iPod Touch 5g should be returning .5625
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 28th Oct 2012 05:15
But what are the values reported? And what do you expect it to report?

If the reported values agree with the reported display aspect ration, then it is working correctly.

If the reported values don't agree with what you expect, then we need to look at what you expect and why.

Cheers,
Ancient Lady
AGK Community Tester
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 28th Oct 2012 14:58
Dosn't the GetDisplayAspect() command return the current display aspect used by AppGameKit, not the one the device has?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 28th Oct 2012 18:25
Quote: "Dosn't the GetDisplayAspect() command return the current display aspect used by AppGameKit, not the one the device has?"

I suspect that if you don't use the SetDisplayAspect or SetVirtualResolution commands, the GetDisplayAspect command will return the ratio the device is currently using.

Cheers,
Ancient Lady
AGK Community Tester
Ian Rees
AGK Developer
12
Years of Service
User Offline
Joined: 3rd May 2012
Location: Wales, UK
Posted: 28th Oct 2012 21:24
As a matter of interest what does GetDeviceName() return on your 5th Gen iPod Touch?

E

http://www.superiorinteractive.com/galaforceworlds
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 30th Oct 2012 02:35
See the post below I just created, which contains high quality icon and splash screen images for all Apple devices. You will need to add Default-568h@2x.png to the interpreter project (for the 4-inch Retina Launch Image) through the latest Xcode and rebuild the project in order for the player to become compatible with iPhone 5 and iPod Touch 5G. Otherwise it will return the resolution and aspect ratio of iPhone 4 as you found out.

http://forum.thegamecreators.com/?m=forum_view&t=201148&b=44

Login to post a reply

Server time is: 2024-11-27 19:22:10
Your offset time is: 2024-11-27 19:22:10