summaryrefslogtreecommitdiffstats
path: root/src/core/main.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-11-09 23:41:21 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-11-09 23:50:34 +0100
commit59f9c009efd3e149b83621c61716fa8da1ee1309 (patch)
tree46d3644183f9bd7b4297f9f3f675f0322665a703 /src/core/main.cpp
parentRevert "Font: Fix text dimensions" (diff)
downloadre3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar.gz
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar.bz2
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar.lz
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar.xz
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.tar.zst
re3-59f9c009efd3e149b83621c61716fa8da1ee1309.zip
Diffstat (limited to 'src/core/main.cpp')
-rw-r--r--src/core/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 80feddb7..2e4b839a 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -625,20 +625,20 @@ LoadingIslandScreen(const char *levelName)
CFont::SetScale(1.5f, 1.5f);
CFont::SetPropOn();
CFont::SetRightJustifyOn();
- CFont::SetRightJustifyWrap(150.0f);
+ CFont::SetRightJustifyWrap(SCREEN_SCALE_X(150.0f));
CFont::SetFontStyle(FONT_HEADING);
sprintf(str, "WELCOME TO");
AsciiToUnicode(str, wstr);
CFont::SetDropColor(CRGBA(0, 0, 0, 255));
CFont::SetDropShadowPosition(3);
CFont::SetColor(CRGBA(243, 237, 71, 255));
- CFont::SetScale(SCREEN_STRETCH_X(1.2f), SCREEN_STRETCH_Y(1.2f));
- CFont::PrintString(SCREEN_WIDTH - 20, SCREEN_STRETCH_FROM_BOTTOM(110.0f), TheText.Get("WELCOME"));
+ CFont::SetScale(SCREEN_SCALE_X(1.2f), SCREEN_SCALE_Y(1.2f));
+ CFont::PrintString(SCREEN_SCALE_FROM_RIGHT(20.0f), SCREEN_STRETCH_FROM_BOTTOM(110.0f), TheText.Get("WELCOME"));
TextCopy(wstr, name);
TheText.UpperCase(wstr);
CFont::SetColor(CRGBA(243, 237, 71, 255));
- CFont::SetScale(SCREEN_STRETCH_X(1.2f), SCREEN_STRETCH_Y(1.2f));
- CFont::PrintString(SCREEN_WIDTH-20, SCREEN_STRETCH_FROM_BOTTOM(80.0f), wstr);
+ CFont::SetScale(SCREEN_SCALE_X(1.2f), SCREEN_SCALE_Y(1.2f));
+ CFont::PrintString(SCREEN_SCALE_FROM_RIGHT(20.0f), SCREEN_STRETCH_FROM_BOTTOM(80.0f), wstr);
CFont::DrawFonts();
DoRWStuffEndOfFrame();
}
@@ -852,7 +852,7 @@ DisplayGameDebugText()
CFont::SetRightJustifyOff();
CFont::SetJustifyOff();
CFont::SetBackGroundOnlyTextOff();
- CFont::SetWrapx(640.0f);
+ CFont::SetWrapx(SCREEN_STRETCH_X(DEFAULT_SCREEN_WIDTH));
CFont::SetFontStyle(FONT_HEADING);
CFont::SetColor(CRGBA(0, 0, 0, 255));