GETDESKTOPSIZE

Previous topic - Next topic

MrTAToad

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!

Moru

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.

Xaron

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.

MrTAToad

Does everything still fit though ?  With any luck it'll chose the best resolution for those settings...