Fix wrong color bit range

This commit is contained in:
2022-09-11 15:44:11 +02:00
parent e2af03a268
commit b9b01bd544

View File

@@ -30,7 +30,7 @@ namespace GPU {
}
static constexpr Color24 Green() {
return Color24(0x0, 0x0, 0xFF);
return Color24(0x0, 0xFF, 0x0);
}
static constexpr Color24 Blue() {
@@ -41,8 +41,8 @@ namespace GPU {
class Color {
private:
static constexpr auto RedRange = BitRange<uint16_t>::from_to(0, 4);
static constexpr auto BlueRange = BitRange<uint16_t>::from_to(5, 9);
static constexpr auto GreenRange = BitRange<uint16_t>::from_to(10, 14);
static constexpr auto GreenRange = BitRange<uint16_t>::from_to(5, 9);
static constexpr auto BlueRange = BitRange<uint16_t>::from_to(10, 14);
static constexpr auto SemiTransperancyBit = Bit<uint16_t>(15);
ComplexBitMap<uint16_t> value = {0};