summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Piotr Wilczyński <wilczynskip@google.com> 2023-08-03 15:10:38 +0000
committer Piotr Wilczyński <wilczynskip@google.com> 2023-09-27 10:37:20 +0000
commit78bc4f4ec343bd0db09b7af621a7a9d3b2395cdd (patch)
treef13d7762977604ffdb6d4311672ec607cb47d2a0 /libs/input/PointerController.cpp
parentf8e61cf3e75ae2879decb0196b1d2ad1284d241f (diff)
Make the brightness int scale match the slider
The brightness scale 0-255 will now match the slider, i.e. setting brighthess to 0.23 * 255 will set it to 23% on the slider. This will work regardless of the brightness limits (e.g. HBM) - if HBM is on, 255 will still be the max value on the slider, so the max value allowed in HBM mode. This only affects the int scale of the brightness setting. The brightness int values in config files will remain unchanged. Bug: 183655602 Test: atest com.android.server.display Test: atest android.display.cts Change-Id: I8e8ede6fa4ee945899e33a2ba45a290bf704d166
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions