Blimey lots of responses, thanks a lot! In the end I did this, which works fine:
Anyway see anything wrong with this? It should be cross platform too right?
' ----------------------------------------------------------------------------- ' ccCopyRect ' ----------------------------------------------------------------------------- Function ccCopyRect(image:TImage,x,y,w,h,frame=0) 'Draws a part of an image by using a viewport. SetViewport x,y,w,h DrawImage(image,x,y,frame) SetViewport 0,0,screenwidth, screenheight End Function
Anyway see anything wrong with this? It should be cross platform too right?