summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Eiji <Eiji.Takahashi@sony.com> 2024-08-06 13:56:37 +0900
committer Paul Colta <donpaul@google.com> 2024-08-07 23:03:28 +0000
commit3298d360630957f93b1aaa63ad5a8cc0f9a269e2 (patch)
tree580276830b57201f57fd471cae04938d8e623b11 /libs/input/PointerController.cpp
parent2d8aff7ea01a064a496a9b7d0a496f8526db6636 (diff)
HDMI: Fix BCD handling error
isValidHour/isValidMinute accept a parameter as BCD encoded value, but they check it without translating to raw value, so valid hour/minute may be detected as an error; e.g. 18:00 is within 23:00 but 0x18(24) is over 23 * 0x18 should be decoded (0x10 >> 4) x 10 + 0x08 = 18 Fix to translate the parameter before checking by isWithinRange. Bug: 357733495 Change-Id: Id0cfb1211048b1f2eaebf3db5814e3da0f34e5b9
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions