Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OMG! OMG! OMG! I found QB64's lost HOLY GRAIL!!
#16
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
Reply


Messages In This Thread
RE: OMG! OMG! OMG! I found QB64's lost HOLY GRAIL!! - by SMcNeill - 10 hours ago



Users browsing this thread: 3 Guest(s)