From a888c12ebd5657b2e28cbaf236bdc82342d26dc4 Mon Sep 17 00:00:00 2001 From: Jaby Date: Sun, 11 Sep 2022 15:44:11 +0200 Subject: [PATCH] Fix wrong color bit range --- include/PSX/GPU/GPU_Types.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/PSX/GPU/GPU_Types.hpp b/include/PSX/GPU/GPU_Types.hpp index 1d74d81d..af57f1b2 100644 --- a/include/PSX/GPU/GPU_Types.hpp +++ b/include/PSX/GPU/GPU_Types.hpp @@ -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::from_to(0, 4); - static constexpr auto BlueRange = BitRange::from_to(5, 9); - static constexpr auto GreenRange = BitRange::from_to(10, 14); + static constexpr auto GreenRange = BitRange::from_to(5, 9); + static constexpr auto BlueRange = BitRange::from_to(10, 14); static constexpr auto SemiTransperancyBit = Bit(15); ComplexBitMap value = {0};