Also merged a ctc fix
This patch changes rotation settings to disallow upside down rotation.
Contributed by clienthax.