mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-28 07:43:03 +00:00
Reject colors with ambiguous alpha channel
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user