summaryrefslogtreecommitdiffstats
path: root/src/render/SpecialFX.cpp
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-12 12:41:57 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-12 12:41:57 +0200
commit56bb7d721a13550cf940c58ff60a00b9b4ad0209 (patch)
tree8d26685a290bb28bca6598936e2ca4c04fc3ba3c /src/render/SpecialFX.cpp
parentCBrightLight::render (diff)
downloadre3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar.gz
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar.bz2
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar.lz
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar.xz
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.tar.zst
re3-56bb7d721a13550cf940c58ff60a00b9b4ad0209.zip
Diffstat (limited to '')
-rw-r--r--src/render/SpecialFX.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp
index 8403e173..b614fae0 100644
--- a/src/render/SpecialFX.cpp
+++ b/src/render/SpecialFX.cpp
@@ -179,11 +179,11 @@ CSpecialFX::Render2DFXs(void)
CFont::SetScale(SCREEN_SCALE_X(1.5f), SCREEN_SCALE_Y(1.5f));
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
- CFont::SetCentreSize(SCREEN_WIDTH - 20);
+ CFont::SetCentreSize(SCREEN_SCALE_FROM_RIGHT(20.0f));
CFont::SetCentreOff();
CFont::SetPropOn();
CFont::SetColor(CRGBA(0, 255, 0, 200));
- CFont::SetFontStyle(FONT_STANDARD);
+ FONT_LOCALE(FONT_STANDARD);
sprintf(gString, "%d", CTimer::GetFrameCounter() & 0x3F); // mb % 63
AsciiToUnicode(gString, gUString);
CFont::PrintString(SCREEN_WIDTH * 8 / 10, SCREEN_HEIGHT * 8 / 10, gUString);
@@ -204,11 +204,11 @@ CSpecialFX::Render2DFXs(void)
CFont::SetScale(SCREEN_SCALE_X(1.5f), SCREEN_SCALE_Y(1.5f));
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
- CFont::SetCentreSize(SCREEN_WIDTH - 20);
+ CFont::SetCentreSize(SCREEN_SCALE_FROM_RIGHT(20.0f));
CFont::SetCentreOff();
CFont::SetPropOn();
CFont::SetColor(CRGBA(100, 100, 100, 200));
- CFont::SetFontStyle(FONT_STANDARD);
+ FONT_LOCALE(FONT_STANDARD);
CFont::PrintString(SCREEN_WIDTH * 8 / 10, SCREEN_HEIGHT * 8 / 10, gUString);
for (int32 i = 0; i < SCREEN_HEIGHT; i += 4) {
RwRenderStateSet(rwRENDERSTATESRCBLEND, (void*)rwBLENDONE);
@@ -1337,7 +1337,7 @@ CMoneyMessage::Render()
CFont::SetJustifyOff();
CFont::SetColor(CRGBA(m_Colour.r, m_Colour.g, m_Colour.b, (255.0f - 255.0f * fLifeTime) * m_fOpacity));
CFont::SetBackGroundOnlyTextOff();
- CFont::SetFontStyle(FONT_STANDARD);
+ FONT_LOCALE(FONT_STANDARD);
CFont::PrintString(vecOut.x, vecOut.y, m_aText);
}
}