Move CS_SPRITE_FONT_OFFSET to Font.cpp, its only user

This commit is contained in:
Aaron van Geffen committed 2024-07-12 22:32:12 +02:00
1 parent 3fd91038c3
commit c4eede9767
2 files changed
+2 -2

No files matched your search

+2
View File
@@ -35,6 +35,8 @@ static uint8_t _additionalSpriteFontCharacterWidth[FontStyleCount][SPR_G2_GLYPH_
TTFFontSetDescriptor* gCurrentTTFFontSet;
#endif // NO_TTF
constexpr uint8_t CS_SPRITE_FONT_OFFSET = 32;
static const std::unordered_map<char32_t, int32_t> codepointOffsetMap = {
{ UnicodeChar::ae_uc, SPR_G2_AE_UPPER - SPR_CHAR_START },
{ UnicodeChar::o_stroke_uc, SPR_G2_O_STROKE_UPPER - SPR_CHAR_START },
-2
View File
@@ -82,8 +82,6 @@ bool FormatTokenIsColour(FormatToken token);
size_t FormatTokenGetTextColourIndex(FormatToken token);
FormatToken FormatTokenFromTextColour(size_t textColour);
constexpr uint8_t CS_SPRITE_FONT_OFFSET = 32;
namespace CSChar
{
constexpr char32_t quote_close = 0x22;