summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2013-03-01 11:49:07 -0800
committerJason Gerecke <killertofu@gmail.com>2013-03-15 17:19:09 -0700
commit70bca4cc8a37c34ec5cdb0405b2e7e2c2779630d (patch)
tree72b215782f654ae8282482f94f322c7dd37433d6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc9e0cd2ac7b1df3e60f0ca8bab6a7240bade07d9 (diff)
Properly rotate full [-pi, +pi] orientation range if available
The code currently in place assumes that orientation has a range of [-pi/2, +pi/2] as may be found with a touch digitizer. However, when used with a digitzer that can report the full [-pi, +pi] range of orientations (e.g. a stylus) the calculations here are incorrect. This patch checks if the post-rotation value is out of range for the axis, and wraps it back around. Change-Id: I03a22f7bf9526a5d995df1a18430d6dd24c6d6ee
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions