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:
@@ -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 },
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user