diff options
| author | 2021-11-09 11:08:48 -0500 | |
|---|---|---|
| committer | 2021-11-09 11:08:48 -0500 | |
| commit | 62918fe10be750bf05bd26f865321692c2ee9ef0 (patch) | |
| tree | 249730d72fdcf09d7a4fedf51c1d9da5ef0985a9 /cmds/bootanimation/BootAnimation.cpp | |
| parent | 62924f1213ddf532b4837fd5a425c9a5b10b4d29 (diff) | |
Fix error computing tertiary hue
After adding 60 degrees to the hue, the result needs to be normalized to
0 to 360. Code downstream of Shades.of does not perform the
normalization, so the resulting color will be the result of undefined
behavior.
Test: `atest ColorSchemeTest`, newly added testTertiaryHueWrapsProperly
passes.
Bug: 204463343
Change-Id: I93168c98ba64fb865888469220571dc6d437105d
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions