summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2024-04-25 18:27:19 +0000
committer Aurélien Pomini <pomini@google.com> 2024-04-25 18:44:20 +0000
commitc7911bb237ffd9fee9b93589cab692692eceb19b (patch)
tree0c61a161073dd14edaebfed1d7cb1d343c68ebf4 /libs/androidfw/FileStream.cpp
parentf08be94d30ba102f8af8fce047c8b314022e6732 (diff)
Fix small computation error.
The case "BALANCE" is usually used to find a rotated crop, i.e. in cases where the reference crop is for display "x, y" and we're looking for "y, x". The previous computation for widthToAdd worked only in this specific case (when screenRatio = crop.height/crop.width), but the formulae was globally wrong. Fix that and add a note. Flag: aconfig com.android.window.flags.multi_crop TEAMFOOD Bug: 281648899 Test: atest WallpaperCropperTest Change-Id: I70d1b1a18645ac0a161645d7a2d016a47b61c5c8
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions