adjust mouse cursor on corners depending on rotation.

This adds the feature of #644.