actually check screen dims to determine successful rotation (fixes #383)
Merge pull request #385 from jlipps/master

fix orientation bug