[solved] CreateSprite() bug?
Posted: Mon Jan 23, 2023 4:23 pm
The following code is not working in PB ver. 6.00 LTS(x86) with or without optimizer, However, it works in PB ver. 5.73 LTS(x86).
Is this a bug or an error in my code?
Is this a bug or an error in my code?
Code: Select all
InitSprite()
ExamineDesktops()
Define Win.i = OpenWindow(#PB_Any, 0, 0, DesktopWidth(0), DesktopHeight(0), "bug?", #PB_Window_NoGadgets | #PB_Window_BorderLess)
OpenWindowedScreen(WindowID(Win), 0, 0, WindowWidth(Win), WindowHeight(Win))
Define Test.i = CreateSprite(#PB_Any, 200, 24, #PB_Sprite_AlphaBlending)
StartDrawing(SpriteOutput(Test))
Box(0, 0, SpriteWidth(Test), SpriteHeight(Test), $DEDEDA)
StopDrawing()
Repeat
While WindowEvent() : Wend
ClearScreen(#Black)
DisplayTransparentSprite(Test, 100, 100)
FlipBuffers()
ForEver