Clean up some of the cursor scaling routines.

This basically restores old functionality, removing a layer of kludges to make touchscreen work. This will still probably break pure SDL2 build, though.