summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authormincheli <mincheli@google.com>2021-06-10 07:07:02 +0800
committerMinche Li <mincheli@google.com>2021-06-16 01:59:16 +0000
commit5c8b13c47f1f356ed11d66bb0d39a6364b0bd1a3 (patch)
treeb223b282648a76e68e9641cf6d1c2d096de1d2bb /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent5c80e3491dca9bcb13d5fdefdfea524fa06d5179 (diff)
Calculates the window height fraction on screen by the draggable bounds for magnification switch button
In the previous change ag/14776093, the window height fraction used "windowHeightFraction = (float) mParams.y / mWindowHeight;". And it causes the Y-position deviated after the rotation is changed. To correct this, we used the draggable bounds to calculate the window height fraction. See b/189715285#comment3 Bug: 189715285 Test: atest MagnificationModeSwitchTest Change-Id: I1adcea12f0a96c64c9c6e386dc2feb8e3a9ffcf3
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions