1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Move CS_SPRITE_FONT_OFFSET to Font.cpp, its only user

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

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 },

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;