adjust compass rotation by window orientation