10 hours ago
Just tried it, and it's got to be in the _PUTIMAGE command itself. It doesn't work if you try and set _DEST to 1 outside of that putimage.
Code: (Select All)
Screen _NewImage(640, 480, 32)
Red = _NewImage(200, 200, 32)
Green = _NewImage(200, 200, 32)
Cls , &HFFFF0000, Red
Cls , &HFF00FF00, Green
RedHW = _CopyImage(Red, 33)
GreenHW = _CopyImage(Green, 33)
order = -1
Do
k = _KeyHit
Select Case k
Case 32 'space will toggle
order = Not order
If order Then
_DisplayOrder _Hardware , _Hardware1
Else
_DisplayOrder _Hardware1 , _Hardware
End If
Case 27
System
End Select
_Dest 0
_PutImage (100, 100), RedHW
_Dest 1
_PutImage (200, 200), GreenHW 'The comma 1 here says to put that hardware image to Hardware 1!
_Display
_Limit 30
Loop