summaryrefslogtreecommitdiffstats
path: root/src/render/Font.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-07 03:10:06 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-07 03:10:06 +0200
commit552205dfbaea70628df56a4966d269a81a97d28e (patch)
treedbef85f0681e0a9a4e7bd24b3b77198e5781def8 /src/render/Font.cpp
parentdisable skidding bugfix (diff)
downloadre3-552205dfbaea70628df56a4966d269a81a97d28e.tar
re3-552205dfbaea70628df56a4966d269a81a97d28e.tar.gz
re3-552205dfbaea70628df56a4966d269a81a97d28e.tar.bz2
re3-552205dfbaea70628df56a4966d269a81a97d28e.tar.lz
re3-552205dfbaea70628df56a4966d269a81a97d28e.tar.xz
re3-552205dfbaea70628df56a4966d269a81a97d28e.tar.zst
re3-552205dfbaea70628df56a4966d269a81a97d28e.zip
Diffstat (limited to '')
-rw-r--r--src/render/Font.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp
index ef665fae..33b2dca1 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -250,7 +250,7 @@ CFont::Initialise(void)
SetBackgroundColor(CRGBA(0x80, 0x80, 0x80, 0x80));
SetBackGroundOnlyTextOff();
SetPropOn();
- SetFontStyle(FONT_BANK);
+ SetFontStyle(FONT_STANDARD);
SetRightJustifyWrap(0.0f);
SetAlphaFade(255.0f);
SetDropShadowPosition(0);
@@ -348,7 +348,7 @@ CFont::PrintChar(float x, float y, wchar c)
}
#endif
- if(Details.style == FONT_BANK || Details.style == FONT_HEADING){
+ if(Details.style == FONT_STANDARD || Details.style == FONT_HEADING){
if(Details.dropShadowPosition != 0){
CSprite2d::AddSpriteToBank(Details.bank + Details.style, // BUG: game doesn't add bank
CRect(x + SCREEN_SCALE_X(Details.dropShadowPosition),
@@ -828,7 +828,7 @@ CFont::GetCharacterWidth(wchar c)
if (IsJapanese()) {
if (!Details.proportional)
return Size[0][Details.style][192];
- if (c <= 94 || Details.style == FONT_HEADING || Details.style == FONT_BANK) {
+ if (c <= 94 || Details.style == FONT_HEADING || Details.style == FONT_STANDARD) {
switch (Details.style)
{
case FONT_JAPANESE:
@@ -844,7 +844,7 @@ CFont::GetCharacterWidth(wchar c)
{
case FONT_JAPANESE:
return 29.4f;
- case FONT_BANK:
+ case FONT_STANDARD:
return 10.0f;
case FONT_PAGER:
return 31.5f;
@@ -874,7 +874,7 @@ CFont::GetCharacterSize(wchar c)
{
if (!Details.proportional)
return Size[0][Details.style][192] * Details.scaleX;
- if (c <= 94 || Details.style == FONT_HEADING || Details.style == FONT_BANK) {
+ if (c <= 94 || Details.style == FONT_HEADING || Details.style == FONT_STANDARD) {
switch (Details.style)
{
case FONT_JAPANESE:
@@ -890,7 +890,7 @@ CFont::GetCharacterSize(wchar c)
{
case FONT_JAPANESE:
return 29.4f * Details.scaleX;
- case FONT_BANK:
+ case FONT_STANDARD:
return 10.0f * Details.scaleX;
case FONT_PAGER:
return 31.5f * Details.scaleX;