summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-05-12 00:51:09 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-05-12 17:12:37 +0800
commit5bfdaddc9831d78749438ed684b473c4d2bd0706 (patch)
treeaa21c5c57b51c8ba3550fc152babb5c95da24aa7 /libs/androidfw/StringPool.cpp
parentc3565a503dc37bdc51d479bd07ae3fd77b8a87d3 (diff)
Round screen size of configuration
To avoid precision problem of float, such as (int)(960/1.2f)=799 (int)(960/1.2f+0.5f)=800 (int)(540/1.2f)=449 (int)(540/1.2f+0.5f)=450 Bug: 204481252 Test: DisplayContentTests#testCreateTestDisplayContentFromDimensions Change-Id: I8f78d9bd14b7fb9d12a20a662ad4ec04f82ce7f2
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions