summaryrefslogtreecommitdiffstats
path: root/src/render/Credits.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-27 18:21:16 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-27 18:22:21 +0200
commit70aac0f460a9e57956de00ae5d84d8bb4bf4643c (patch)
tree92e3d8073b6e9e4ad8ae3ee7d8a2460c7e079cca /src/render/Credits.cpp
parentFixes (diff)
downloadre3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.gz
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.bz2
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.lz
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.xz
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.zst
re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.zip
Diffstat (limited to 'src/render/Credits.cpp')
-rw-r--r--src/render/Credits.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/render/Credits.cpp b/src/render/Credits.cpp
index 2d33ce40..6b28ff04 100644
--- a/src/render/Credits.cpp
+++ b/src/render/Credits.cpp
@@ -11,13 +11,6 @@
bool CCredits::bCreditsGoing;
uint32 CCredits::CreditsStartTime;
-#ifdef ASPECT_RATIO_SCALE
-#define SCALE_AND_CENTER(x) ScaleAndCenterX(x)
-extern float ScaleAndCenterX(float x);
-#else
-#define SCALE_AND_CENTER(x) SCREEN_STRETCH_X(x)
-#endif
-
void
CCredits::Init(void)
{
@@ -69,7 +62,7 @@ CCredits::Render(void)
scrolloffset = (CTimer::GetTimeInMilliseconds() - CreditsStartTime) / 24.0f;
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
- CFont::SetCentreSize(SCALE_AND_CENTER(DEFAULT_SCREEN_WIDTH - 20));
+ CFont::SetCentreSize(SCALE_AND_CENTER_X(DEFAULT_SCREEN_WIDTH - 20));
CFont::SetCentreOn();
CFont::SetPropOn();
CFont::SetColor(CRGBA(220, 220, 220, 220));
@@ -503,6 +496,4 @@ CCredits::Render(void)
bool CCredits::AreCreditsDone(void)
{
return !bCreditsGoing;
-}
-
-#undef SCALE_AND_CENTER \ No newline at end of file
+} \ No newline at end of file