Fix wrong color bit range

This commit is contained in:
Jaby 2022-09-11 15:44:11 +02:00 committed by Jaby
parent ae5a4a80dd
commit d8a48642d8
1 changed files with 3 additions and 3 deletions

View File

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