Hi everyone. Started to learn Corona SDK recently, so I have strange issue:
I used mask for button to make round shape and make touch area round.
Code looks like this:
local startMask = graphics.newMask( “start-btn-mask.gif”, 315, 315 )
startBtn = widget.newButton{
label="",
labelColor = { default={255}, over={128} },
defaultFile=“start-btn0.jpg”,
overFile=“start-btn1.jpg”,
width=315, height=315,
fontSize=24,
onRelease = onStartBtnRelease – event listener function
}
startBtn:setMask (startMask)
startBtn.x = menuX
startBtn.y = menuY
startBtn.maskX = 157.5
startBtn.maskY = 157.5
On emulator all looks allright, but on real device (SG Note 3 9005 and on SGS 4) button images looks like mask cropping did not apply.