apologies if there is already a thread for this...
I am running a game 800x600 in full screen.
If I Alt/Tab to the desktop, and return to the game, all the images created with CreateImage are scrambled. I have tried setting the flags differently, but it does not help...

before

after
and this is the code:
thanks if you can help
I am running a game 800x600 in full screen.
If I Alt/Tab to the desktop, and return to the game, all the images created with CreateImage are scrambled. I have tried setting the flags differently, but it does not help...

before

after
and this is the code:
Function MakeForts() For i% = 1 To 4 White.Fort = New Fort White\FortX = i%*147 White\FortY = 480 White\Pic = CreateImage(64,64,1) SetBuffer ImageBuffer(White\Pic) DrawBlock FortPic,0,0 Next End Function
thanks if you can help