Page 1 of 1

makebutton wrong offset At FullScreen At android

Posted: Sun Mar 24, 2019 8:23 pm
by plouf
The following example it is working correct at Windows at any case
however, in android, if you start the Display with mode=FullScreen button's are a little bit upward's offseted !

in contrary if you do NOT start in fullscreen but select fullscreen from the topright menu, then it is working correctly
both Player8 and apkcompiler3 have the problem

Code: Select all

	 @DISPLAY {	
		 width = 320
		,Height = 480
		,DisableBlanker = True
		,ScaleMode=#SCALEMODE_AUTO
		,mode="FullScreenScale"
		}
		@BGPIC 1, "BGPic.png"
		SSizeMul = 2; (160 * 2 = 320)
; MAIN CODE

Function p_MyFunc(msg)	
	If  msg.action ="OnMouseUp"
		SystemRequest(msg.id,"","ok")
EndIf
EndFunction

evtmatch = {OnMouseUp = p_MyFunc}
MakeButton(8,  #SIMPLEBUTTON, SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*0,ssizemul*15 ,ssizemul*15 , evtmatch) ; area 1
MakeButton(9,  #SIMPLEBUTTON, SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*1,ssizemul*15 ,ssizemul*15 , evtmatch) ; 2
MakeButton(10, #SIMPLEBUTTON, SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*2,ssizemul*15 ,ssizemul*15 , evtmatch) ;3 
MakeButton(11, #SIMPLEBUTTON, SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*3,ssizemul*15 ,ssizemul*15 , evtmatch) ;4 

Box(SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*0,ssizemul*15 ,ssizemul*15 , #YELLOW) ; area 1
Box(SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*1,ssizemul*15 ,ssizemul*15 , #RED) ; 2
Box(SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*2,ssizemul*15 ,ssizemul*15 , #YELLOW) ;3 
Box(SSizeMul*15 ,(SSizeMul*15*12)+SSizeMul*15*3,ssizemul*15 ,ssizemul*15 , #RED) ;4 

Repeat
	WaitEvent()
Until 0 

Re: makebutton wrong offset At FullScreen At android

Posted: Wed Mar 27, 2019 11:09 pm
by airsoftsoftwair
Right, I can reproduce this. Will be fixed.

Re: makebutton wrong offset At FullScreen At android

Posted: Sat May 04, 2019 6:11 pm
by airsoftsoftwair

Code: Select all

- Fix [Android]: Vertical offsets were slightly shifted when using a display that is initially set to
  "FullScreenScale" mode