mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use more constants
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
static constexpr const int32_t SpriteFontLineHeight[] = { 6, 10, 10, 18 };
|
||||
|
||||
static uint8_t _spriteFontCharacterWidths[896];
|
||||
static uint8_t _spriteFontCharacterWidths[FONT_SIZE_COUNT * FONT_SPRITE_GLYPH_COUNT];
|
||||
|
||||
#ifndef NO_TTF
|
||||
TTFFontSetDescriptor *gCurrentTTFFontSet;
|
||||
|
||||
@@ -25,10 +25,10 @@ enum {
|
||||
FONT_SPRITE_BASE_MEDIUM_EXTRA_DARK = -2,
|
||||
FONT_SPRITE_BASE_MEDIUM_DARK = -1,
|
||||
|
||||
FONT_SPRITE_BASE_TINY = 448,
|
||||
FONT_SPRITE_BASE_SMALL = 0,
|
||||
FONT_SPRITE_BASE_MEDIUM = 224,
|
||||
FONT_SPRITE_BASE_BIG = 672
|
||||
FONT_SPRITE_BASE_TINY = FONT_SIZE_TINY * FONT_SPRITE_GLYPH_COUNT,
|
||||
FONT_SPRITE_BASE_SMALL = FONT_SIZE_SMALL * FONT_SPRITE_GLYPH_COUNT,
|
||||
FONT_SPRITE_BASE_MEDIUM = FONT_SIZE_MEDIUM * FONT_SPRITE_GLYPH_COUNT,
|
||||
FONT_SPRITE_BASE_BIG = FONT_SIZE_BIG * FONT_SPRITE_GLYPH_COUNT
|
||||
};
|
||||
|
||||
#ifndef NO_TTF
|
||||
|
||||
Reference in New Issue
Block a user