crosswalk-project/crosswalk — pull request #2656 by yejingfu (2014-11-26 03:55:22+00:00)
Title: [Tizen] Fix calculation for display rotation angle.

For landscape devices which have landscape-primary as default orientation, the rotation calculation " ((rot - 1) % 4) " gets invalid value that might cause unexpected result, for example when converting from portrait-primary to landscape-primary, the "rot" should be 3 (ROTATE_270) rather than -1 (invalid value).
This CL is to correct the rotation calculation.