19-07-2007, 06:10 AM
In Vanilla MSE, this is done like this:In my game, I load the Surfaces again before I do the Restore, I'm not sure why I do this, I did this a long ago and there is no commentary at this part of the code of my game... Here it is:Ignore the two AddText()...
This parameter True is a thing I did just so if it is true no window will be show when calling InitSurfaces, since there is needed a few when the game really starts.
I'm not sure if this can help you out with exactly this problem but maybe it will. Good luck!
BTW: AVATAR RLZ!
Code:
' Check if we need to restore surfaces
If NeedToRestoreSurfaces Then
DD.RestoreAllSurfaces
Call InitSurfaces
End If
Code:
If NeedToRestoreSurfaces Then
Call AddText("Espere um momento...", Red)
Call InitSurfaces(True)
DD.RestoreAllSurfaces
Call AddText("Pronto.", White)
End If
This parameter True is a thing I did just so if it is true no window will be show when calling InitSurfaces, since there is needed a few when the game really starts.
I'm not sure if this can help you out with exactly this problem but maybe it will. Good luck!
BTW: AVATAR RLZ!