Yeah, that's it. I made a little test. Once the _DEST image is freed, the _DEST will reset to 0, not to whatever _DEST was before _DESTing to that image. I guess _DEST cur& should be added before exiting the Text SUB.
- Dav
- Dav
Code: (Select All)
Screen _NewImage(640, 480, 32)
num2& = _NewImage(640, 480, 32) 'a second screen
_Dest num2& 'dest to this just for a test
dotest 'call a sub (we are in _DEST num2&...)
Print "Hello" 'This will show in _DEST 0
Sub dotest
test& = _NewImage(640, 480, 32) 'another screen
_Dest test& 'point there
Print "Test page."
_FreeImage test& 'remove it, DEST will be removed
'(_DEST will not go back to num&, but 0)
End Sub