summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceUtils.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2025-01-09 08:25:49 -0800
committer Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2025-01-09 08:25:49 -0800
commit9281084a37a5a015a6055bea478474bdc73cbe01 (patch)
treef6723eb7f2bdba5360ebef28590ec0cef2154281 /libs/androidfw/ResourceUtils.cpp
parent4109b47910ce9c361cc8cc0195963696c0eaf2e7 (diff)
PointerIcon: Ensure bitmap size and hotspot are scaled consistently
The density-dependent size of the bitmap is already casted to an int before we scale it by pointerScale. However, the hotspot did not follow the same scaling logic, since it was not casted to int before applying pointerScale. In this CL, we make both the scaling logics consistent. Bug: 385663202 Test: manual Flag: EXEMPT bug fix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:626edb8f8c5450fafaee96aaf702cb9e01c55ab8) Merged-In: I375008e5603a9e50e4e7132c8faffda3a1cdd765 Change-Id: I375008e5603a9e50e4e7132c8faffda3a1cdd765
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions