GLBasic forum

Main forum => GLBasic - en => Topic started by: Armoured on 2012-Jun-24

Title: A question about the incoming version of GLBasic
Post by: Armoured on 2012-Jun-24
Hi,
In the incoming version of GLBasic the commands "GETDESKTOPSIZE" and "GETSCREENSIZE" rotate their results when I change the orientation of the display?

Thanks
Title: Re: A question about the incoming version of GLBasic
Post by: mentalthink on 2012-Jun-24
Hi Armour I think about this answer I think it´s not... because "GETDESKTOPSIZE" and "GETSCREENSIZE normally you don´t have to use into the main bucle... but if you make a call into the bucle when you rotated the screen I think, the values in x pass to y, and viceversa... How I told you, I´m not sure.

Title: Re: A question about the incoming version of GLBasic
Post by: Armoured on 2012-Jun-25
Quote from: mentalthink on 2012-Jun-24
Hi Armour I think about this answer I think it´s not... because "GETDESKTOPSIZE" and "GETSCREENSIZE normally you don´t have to use into the main bucle... but if you make a call into the bucle when you rotated the screen I think, the values in x pass to y, and viceversa... How I told you, I´m not sure.

Hi mentalthink,
On Android if the device rotate the screen  from portrait to landscape x and y in these commands aren't swapped.
Another problem is the "GETORIENTATION()" command that always return a top orientation.
Title: Re: A question about the incoming version of GLBasic
Post by: mentalthink on 2012-Jun-25
Hi Armoured, then I don´t know about the values of those 2 commands... Never I tested...

About the orientation, it´s something extrange, really I only use 2 times.. but in my Android device, I do rotate the screen and works fine...

Sorry for not help, I´m sure someone can give you the correct answer...

Regards,
Iván J
Title: Re: A question about the incoming version of GLBasic
Post by: spacefractal on 2012-Jun-25
Software rotation if locked in a orientation is not real deal on android. I have been issues in some devices, system rotation did not work.

I reported that bug long time ago and I posted a video what it could happens when surface change: glbasic did nothing.

Not sure it's fixed in current v11 beta, but its should have been refixed again after the hd crash, and yes it's should return new values in GETSCREENSIZE when happens.
Title: Re: A question about the incoming version of GLBasic
Post by: Armoured on 2012-Jun-25
Quote from: spacefractal on 2012-Jun-25
Software rotation if locked in a orientation is not real deal on android. I have been issues in some devices, system rotation did not work.

I reported that bug long time ago and I posted a video what it could happens when surface change: glbasic did nothing.

Not sure it's fixed in current v11 beta, but its should have been refixed again after the hd crash, and yes it's should return new values in GETSCREENSIZE when happens.

Thanks mentalthink and spacefractal,
I think that fix this bug must have an high priority for GLBasic.  ;/