Use explicitly defaulted rgb_t::operator==
This commit is contained in:
parent
dd1aed76c5
commit
f40b7ba315
|
@ -38,12 +38,12 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
|
|
||||||
struct rgb_t {
|
struct rgb_t {
|
||||||
ubyte r,g,b;
|
ubyte r,g,b;
|
||||||
|
[[nodiscard]]
|
||||||
|
constexpr bool operator==(const rgb_t &) const = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef uint8_t color_t;
|
typedef uint8_t color_t;
|
||||||
|
|
||||||
static inline bool operator==(const rgb_t &a, const rgb_t &b) { return a.r == b.r && a.g == b.g && a.b == b.b; }
|
|
||||||
|
|
||||||
namespace dcx {
|
namespace dcx {
|
||||||
|
|
||||||
struct palette_array_t : public std::array<rgb_t, 256> {};
|
struct palette_array_t : public std::array<rgb_t, 256> {};
|
||||||
|
|
Loading…
Reference in a new issue