diff --git a/src/core/gpu_sw_backend.h b/src/core/gpu_sw_backend.h index 3d1089737..409b18eb1 100644 --- a/src/core/gpu_sw_backend.h +++ b/src/core/gpu_sw_backend.h @@ -24,9 +24,6 @@ public: static constexpr DitherLUT ComputeDitherLUT(); protected: - static constexpr u8 Convert5To8(u8 x5) { return (x5 << 3) | (x5 & 7); } - static constexpr u8 Convert8To5(u8 x8) { return (x8 >> 3); } - union VRAMPixel { u16 bits; @@ -36,10 +33,6 @@ protected: BitField b; BitField c; - u8 GetR8() const { return Convert5To8(r); } - u8 GetG8() const { return Convert5To8(g); } - u8 GetB8() const { return Convert5To8(b); } - void Set(u8 r_, u8 g_, u8 b_, bool c_ = false) { bits = (ZeroExtend16(r_)) | (ZeroExtend16(g_) << 5) | (ZeroExtend16(b_) << 10) | (static_cast(c_) << 15);