Fix the rgbgfx color curve (#1200)

This commit is contained in:
Rangi
2023-11-07 16:24:37 -05:00
committed by GitHub
parent 1e70e703a7
commit 05a0905582

View File

@@ -43,8 +43,12 @@ uint16_t Rgba::cgbColor() const {
r = reverse_curve[r];
g = reverse_curve[g];
b = reverse_curve[b];
} else {
r >>= 3;
g >>= 3;
b >>= 3;
}
return (r >> 3) | (g >> 3) << 5 | (b >> 3) << 10;
return r | g << 5 | b << 10;
}
uint8_t Rgba::grayIndex() const {