Chris C fixed the order of X and Y arguments in the clipping code.