DDgui on android scaled screen

Previous topic - Next topic

MrPlow

I have a problem with my DDgui menu - its fine for first few items in list but as I got down the list the spacing for the scaled screen goes off and its moving down the screen too far.


e.g.

Option 1   (clicks okay)
Option 2   (clicks okay)
Option 3   (clicks option 4)
Option 4   (clicks CANCEL button below option 5)
Option 5
[CANCEL]

I though it was a an integer problem but still happening ....

Any ideas guys?? Need to sort this or replace my menus...

my changes in ddgui were

Code (glbasic) Select
MOUSESTATE mx, my, realb1, realb2
//add by gp
mx = mx / offsetx
my = my / offsety

...also...
LOCAL rmx1%, rmy1%
MOUSESTATE rmx1, rmy1, rb1%, rb2%
//add by gp
rmx = rmx1 / offsetx
rmy = rmy1 / offsety



Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Guys,.

Here is the ddgui file i am using ... is there anything that jumps out when considering the 320 x 480 screen to be scaled up to higher res of the 7" Androids etc...?
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Hi,

I got this working in the end...a post by wampus gave me a clue as to what i was doing wrong...

divide float by integer etc... Wasted soo much time on this ... *Darn it*

heres the link for anyone else with a similar "mental block!"
http://www.glbasic.com/forum/index.php?topic=7516.msg62145#msg62145

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

Yes, things like that can be a problem!

MrPlow

A nice forum section on "anomolies to look out for" would be kindy handy!  :whistle:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs