Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
APPLICATION_SUSPEND strong bug ! - Gideros Forum

APPLICATION_SUSPEND strong bug !

YanYan Member
edited April 28 in Bugs and issues
Just try this code in windows player or windows exported exe. After you focus out player and then return focus back to player, it goes hang and has glitches, you can try to push play button and it wouldnt work (because player gets hanget).

The problem seems render cant find active application and crashes. Fortunately, this not happens on Android exported apk.

application:setBackgroundColor(0x000000)

function getScreenShot()

local screenShotRender = RenderTarget.new(940, 560)
screenShotRender:draw(stage)

local screenShot = Bitmap.new(screenShotRender)
screenShot:setColorTransform(0.3, 0.3, 0.3, 1)

return screenShot

end

stage:addEventListener(Event.APPLICATION_SUSPEND, getScreenShot, self)

stage:addEventListener(Event.ENTER_FRAME, function()

if stage.text then

stage.text:removeFromParent()

end

stage.text = TextFiel
vk.com/yan_alex
video.gif
1504 x 895 - 684K

Comments

Sign In or Register to comment.