Fix wrong color bit range

This commit is contained in:
Jaby 2022-09-11 15:44:11 +02:00
parent 3adf7c54a3
commit 2a97f7fa68
1 changed files with 3 additions and 3 deletions

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};