GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2011-May-02

Title: GETDESKTOPSIZE
Post by: MrTAToad on 2011-May-02
Can someone confirm that GETDESKTOPSIZE works on the following platforms (all returning the current desktop size) :

Windows, Linux, iPhone/iPad, Android, webOS

In addition, it doesn't work in Windows CE (returns 0, 0)

And could someone try it on a Pandora machine as well as Mac, GP32 and GP2X

Thanks!
Title: Re: GETDESKTOPSIZE
Post by: Moru on 2011-May-03
My GP2X reports 320x240 and then promptly crashes on trying to exit the application but that's as usual, nothing made in GLBasic for my GP2X avoids that so far.
Title: Re: GETDESKTOPSIZE
Post by: Xaron on 2011-May-03
You can't rely on that. At least you won't get the native device resolution on Android.

If I use the standard Manifest, I get the correct 800x480 on my Desire HD.

If I add these lines to the Manifest:

Code (glbasic) Select

<supports-screens android:resizeable="false"
                  android:smallScreens="true"
                  android:normalScreens="true"
                  android:largeScreens="true"
                  android:anyDensity="false" />


I get 533x320 on my Desire HD. The reason is that the driver takes the view size which is determined by the layout.xml file.
Title: Re: GETDESKTOPSIZE
Post by: MrTAToad on 2011-May-03
Does everything still fit though ?  With any luck it'll chose the best resolution for those settings...