summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-04-10 19:48:47 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-04-10 21:03:06 +0000
commitf3c4cd5db78b2082eba3b3029d69302783d65e3d (patch)
tree3a19df46d7ca04c03537dd0eaa18b4feaeafa436 /libs/androidfw/AttributeResolution.cpp
parentbafc8bf1d43c714e394ceec43739c325dc81cfa8 (diff)
PointerIcon: Add leniency to hotspot validation for scaled icons
When icons are loaded for the current display density, the icon bitmap is always scaled to an integer pixel size, but the hotspot can be scaled more precisely using floats. To account for the difference in precision, add leniency to the hotspot validation checks when the icons are scaled. Bug: 332973446 Test: adb shell wm density 142 Change-Id: I4af5d6619aa7f5245054047ad079694b11919754
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions