summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2024-02-28 14:39:39 +0000
committer Aurélien Pomini <pomini@google.com> 2024-03-05 15:30:47 +0000
commit2cc2c57db32301b80cb5de1d5ea97e6b45f2a42c (patch)
tree9a74ac9e7bf990720208e38503dba587c5bc9832 /libs/androidfw/StringPool.cpp
parent65e22d0f8a1d115af5526bdfc682ffe1f28181d7 (diff)
Correctly compute diffWidth and diffHeight.
The previous calculation was wrong and lead to less parallax than expected in some cases. This is the OP part of the CL. Also, this CL makes sure we scale by width if the crop is proportionally taller than the screen: this way, the window will always be filled with content (and could support vertical parallax). Note that given our implementation of WallpaperCropper, the wallpaper is always wide enough for the screen, so we always scale by height (make the wallpaper match the screen height) and only have horizontal parallax. A honest alternative would be to remove (under flag) the whole logic for vertical parallax. Flag: aconfig com.android.window.flags.multi_crop DEVELOPMENT Test: atest WallpaperControllerTest Bug: 327042053 Change-Id: I8aac1b0d4b85fed0a446aed794fdb525b21d8e3a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions