summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author abdullahirum <abdullahirum@google.com> 2024-03-21 21:44:38 +0000
committer abdullahirum <abdullahirum@google.com> 2024-04-08 21:43:52 +0000
commit60e5458981d53e55762da5bb2c1179175e9d0711 (patch)
tree2721886af1de052e6ba8d56b116ecd7a7ece4d7b /libs/androidfw/ZipFileRO.cpp
parent859be0cd4bb3a170794822af7b4fed23263b37c8 (diff)
Adjust wallpaper during B&R to center align
This CL implements the alogirithm to correctly restore the wallpaper's center point from devices with different aspect ratios (during B&R). The algorithm involves first computing the original crop of the user (without parallax). Then manually adjusting the user's original crop to respect the current device's aspect ratio (thereby preserving the center point). Then finally, adding any leftover image real-estate (i.e. space left over on the horizontal axis) to add parallax effect. Flag: NONE Bug: 328234087 Test: http://ab/I00700010262844212 Change-Id: I706f955ae54b570af04235d2e0548d1570e5ac6b
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions