[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.