Reject colors with ambiguous alpha channel

This commit is contained in:
ISSOtm
2022-05-20 18:27:54 +02:00
committed by Eldred Habert
parent 05e36767b0
commit a5ed0292b1
3 changed files with 20 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ uint16_t Rgba::cgbColor() const {
if (isTransparent()) {
return transparent;
}
assert(isOpaque());
uint8_t r = red, g = green, b = blue;
if (options.useColorCurve) {