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 / Get Device Height/Width

Author
Message
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 23rd Dec 2014 21:41
Hi there,
I'm taken seriously AGK2 and I've just realized that apparently there is a problem with the commands GetdeviceWidth and height.

Running my apps in windows in returns 1920x1080 if I'm on full screen.

If I put a sprite on screen calcuting deviceheight-height of sprite to put it always touching bottom border, if I'm running on a windows of 1024x768, deviceheight/width returns 1000x777.

When I go to running my app into my Galaxy 4, the bottom interface directly is not showed..

Please anyone could point me in the right direction to solve this matter? or is a known issue?

Thanks in advance!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Dec 2014 23:25 Edited at: 23rd Dec 2014 23:27
maybe Get Device Height/Width is rotated with screen.
just print(...) the values on screen.

i think u need this
SetVirtualResolution ( iWidth, iHeight )
GetVirtualHeight()
GetVirtualWidth()

without bars
SetScissor( 0,0,0,0 )
GetScreenBoundsBottom
GetScreenBoundsLeft
GetScreenBoundsRight
GetScreenBoundsTop

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 24th Dec 2014 17:30
Thanks a lot Markus!
It seems the problem was the use of GetDeviceHeight instead of GetVirtual..
Great! thanks again for point me in the right directtion!

Login to post a reply

Server time is: 2024-11-25 14:58:05
Your offset time is: 2024-11-25 14:58:05