Quote: "SETSCISSOR(0,0,0,0) will let you draw into the borders, or SetDisplayAspect(-1) will stretch everything to fit.
"
Thanks CJB for reply.
I used SETSCISSOR(0,0,0,0), but don't change anything.
when I used SetDisplayAspect(-1) it don't show image correctly in different devices.
I used this code for fix it but won't work correctly on some devices.
Function Back()
for a = 1 to 2
Image$ = "poster" + str(a) + ".png"
if GetImageExists(backImg[a]) = 0 then backImg[a] = LoadImage(Image$)
next a
for b = 1 to 2
if GetSpriteExists(backspr[b]) = 0 then backspr[b] = CreateSprite(0)
Select b
case 1:
SetSpriteImage(backspr[1],backImg[1])
SetSpriteSize(backspr[1],GetScreenBoundsRight()/2 + abs(GetScreenBoundsLeft()),GetScreenBoundsBottom())
SetSpritePosition(backspr[1],GetScreenBoundsLeft(), GetScreenBoundsTop())
endcase
case 2:
SetSpriteImage(backspr[2],backImg[2])
SetSpriteSize(backspr[2],GetScreenBoundsRight()/-2,GetScreenBoundsBottom())
SetSpritePosition(backspr[2],GetScreenBoundsRight()/2,GetScreenBoundsTop())
endcase
EndSelect
next b
EndFunction
also I attached a sample project with above code but it won't work on all devices, please help me to fix it.
https://www.dropbox.com/s/cb9j4jyun13hmbt/Test.zip?dl=0
Thanks.