Fix #1177.

There are now separate functions for `clipToWindowCoordinates` and `clipToDrawingBufferCoordinates`.