makebutton wrong offset At FullScreen At android

Report any Hollywood bugs here
Post Reply
plouf
Posts: 66
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

makebutton wrong offset At FullScreen At android

Post by plouf » Sun Mar 24, 2019 8:23 pm

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 

User avatar
airsoftsoftwair
Posts: 3110
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: makebutton wrong offset At FullScreen At android

Post by airsoftsoftwair » Wed Mar 27, 2019 11:09 pm

Right, I can reproduce this. Will be fixed.

User avatar
airsoftsoftwair
Posts: 3110
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: makebutton wrong offset At FullScreen At android

Post by airsoftsoftwair » Sat May 04, 2019 6:11 pm

Code: Select all

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

Post Reply