diff --git a/platform/sdl/format_mapping.h b/platform/sdl/format_mapping.h index 1c2ccc8..9ac5170 100644 --- a/platform/sdl/format_mapping.h +++ b/platform/sdl/format_mapping.h @@ -1,9 +1,11 @@ #pragma once -#include +#include template -struct FormatMapping; +struct FormatMapping { + static_assert(false, "Unsupported pixel format"); +}; template<> struct FormatMapping { @@ -145,9 +147,9 @@ struct FormatMapping { static constexpr int BShift = 0; static constexpr int AShift = 15; - static constexpr int RBits = 8; - static constexpr int GBits = 8; - static constexpr int BBits = 8; + static constexpr int RBits = 5; + static constexpr int GBits = 5; + static constexpr int BBits = 5; static constexpr int ABits = 1; };