I have a menu program which works fine until i launch a game, Use runprogram with selected game.
No problem everything works ok, until return to menu, which will display screen then get a blank screen
until another keypress etc and display updated.
My code is as follows to update display
Code: Select all
ClearScreen(RGB(0,0,0))
If #Testing=#False
StartDrawing(ScreenOutput())
Else
StartDrawing(WindowOutput(0))
EndIf
;DrawImage(ImageID(0), 0,0)
;DrawingMode(#PB_2DDrawing_Default)
DrawingFont(Font1)
DisplayList(SubList,Game)
DisplaySnap()
DisplayMarquee()
DrawingMode(#PB_2DDrawing_Transparent)
DrawAlphaImage(ImageID(0), 0,0)
; Draw Title
FrontColor(RGB($FF,$00,$FF))
DrawingFont(Font1)
Tlen=700/TextWidth("A")
DrawText(400-(TextWidth(Left(GamesList(CatList(SubList)\Index(Game)\Link)\Description,Tlen))/2),152,Left(GamesList(CatList(SubList)\Index(Game)\Link)\Description,Tlen))
StopDrawing()