summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-11-09 11:08:48 -0500
committerJames O'Leary <jamesoleary@google.com>2021-11-09 11:08:48 -0500
commit62918fe10be750bf05bd26f865321692c2ee9ef0 (patch)
tree249730d72fdcf09d7a4fedf51c1d9da5ef0985a9 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent62924f1213ddf532b4837fd5a425c9a5b10b4d29 (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 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions