Possible bug with CreateBGPic and @DISPLAY {BGPic=}
Posted: Sun May 12, 2019 2:07 pm
I found this possible bug between CreateBGPic and @DISPLAY {BGPic=} with this example you can see better it.
/*BACKGROUNDS */
CreateBGPic(0, 360, 520, #BLACK)
@BGPIC 1, "MyBackground.png", {Loader="inbuilt"}
@DISPLAY {Title="Bug BGPic", BGPic=0, Width=360, Height=520}
Wait(100)
DisplayBGPic(0)
EscapeQuit(True)
Repeat
WaitEvent
Forever
In this code instead of show the BGPic=0 created with CreateBGPic where you create a black background, the code shows fast the @BGPIC 0 but after the main background showed is the @BGPIC 1.
The backgrounds created with CreateBGPic can'ts be use for @DISPLAY {Title="Bug BGPic", BGPic=0, Width=360, Height=520}
/*BACKGROUNDS */
CreateBGPic(0, 360, 520, #BLACK)
@BGPIC 1, "MyBackground.png", {Loader="inbuilt"}
@DISPLAY {Title="Bug BGPic", BGPic=0, Width=360, Height=520}
Wait(100)
DisplayBGPic(0)
EscapeQuit(True)
Repeat
WaitEvent
Forever
In this code instead of show the BGPic=0 created with CreateBGPic where you create a black background, the code shows fast the @BGPIC 0 but after the main background showed is the @BGPIC 1.
The backgrounds created with CreateBGPic can'ts be use for @DISPLAY {Title="Bug BGPic", BGPic=0, Width=360, Height=520}