summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2022-02-07 22:17:22 -0800
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-10-21 15:38:37 +0300
commit140b16880fdf638b76c213754b26ac109d49e509 (patch)
tree73741a6e686adc66170022bc722d1ca778861f2f /core/java/android/inputmethodservice/InputMethodService.java
parentbaf93cb5a7471cb31c4ae98cb199f22112e05cd7 (diff)
ColorUtils: Fix out-of-gamut Oklab blending
It's normal for some colors to go out-of-gamut when blending in Oklab, and slight hue/lightness shifting is fine for our purposes, but failing to mask 8-bit R/G/B channels results in broken colors when a channel is negative or >255. For example, this can cause the lock screen <-> AOD clock transition to flash purple when the wallpaper is saturated green. Clamp each color component to 0-255 to fix the issue. Change-Id: I4d6420ee5be365d7cf89d079b1b4ddf0a7102641 Signed-off-by: Pranav <npv12@iitbbs.ac.in>
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions