Couldn't you just change the start (0) to the end (endx)?
Your copyrect would look something like:
CopyRect (endx-wide),0,wide,high,XPos,YPos,from,BackBuffer()
I just looked over it quickly and didn't test anything so...
Your copyrect would look something like:
CopyRect (endx-wide),0,wide,high,XPos,YPos,from,BackBuffer()
I just looked over it quickly and didn't test anything so...