err.... no setbuffer for pixmap?

BlitzMax Forums/BlitzMax Programming/err.... no setbuffer for pixmap?

Graphics 800,600,0


SetClsColor 200,0,0
Cls
pix1:TPixmap = GrabPixmap (0,0,128,128)
SetClsColor 255,255,255
Cls

pix2:TPixmap	= CreatePixmap(256,256,PF_RGBA8888)

pix2.paste(pix1,100,100)

DrawPixmap pix2,0,0
Flip
WaitKey


Paste will copy the source pixmap (pix1) to the actual pixmap (pix2), at the coord X,Y of the actual pixmap.