B3DSDK with sources

Blitz3D SDK Forums/Blitz3D SDK Programming/B3DSDK with sources

Unload/reload all the graphics needed only if device lost. It happens when you change desktop resolution while game is running.
When you press alt+tab or ctrl+alt+del or Win+L - there is no device lost happens. Only surface deleted from videomemory(when Win+L pressed).
This function restore surface(if it is not vidmem texture):

Function RestoreSurfaces(Entity)

For i=1 To CountSurfaces(Entity)
Surface=GetSurface(Entity,i)
vdPokeInt(Surface+64,0) ;; Set 64 offset of surface to zero, forwarding surface restoration
Next

End Function

Look at ResumeGame() function, there are all entities restores it's surfaces automaticaly.

>From Blitzmax you can press alt+tab or ctrl+alt+del without problems, or at least, I've not have problems at all...
Yes BlitzMax handles Win+L and others events well, I hope Mark or Skidracer will fix this bugs in Blitz3D too.
Because I'm still having crash at RenderWorld in my game, when press Win+L.
(test sample does not crash, I don't know why..maybe because I have a lot of textures and other stuff to render)