summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-01 12:53:20 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-01 12:53:20 +0100
commit9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69 (patch)
tree49f4d64c4ee48b03e9ac032fca6b97259d181935 /src/core/Pad.cpp
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
parentactual struct name (diff)
downloadre3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.gz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.bz2
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.lz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.xz
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.tar.zst
re3-9fd93e8e5792781b1bce0eb5d75aa6eff00d9f69.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 7d53009d..4a78e834 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -3331,10 +3331,18 @@ void CPad::PrintErrorMessage(void)
if ( bDisplayNoControllerMessage && !CGame::playingIntro && !FrontEndMenuManager.m_bMenuActive )
{
CSprite2d::DrawRect(CRect(SCREEN_STRETCH_X(20.0f), SCREEN_SCALE_FROM_BOTTOM(130.0f), SCREEN_STRETCH_FROM_RIGHT(20.0f), SCREEN_SCALE_Y(140.0f)), CRGBA(50, 50, 50, 210));
+#ifdef FIX_BUGS
CFont::SetScale(SCREEN_SCALE_X(0.85f), SCREEN_SCALE_Y(1.0f));
+#else
+ CFont::SetScale(0.85f, 1.0f);
+#endif
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
- CFont::SetCentreSize(SCREEN_SCALE_X(590.0f));
+#ifdef FIX_BUGS
+ CFont::SetCentreSize(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH - 20));
+#else
+ CFont::SetCentreSize(SCREEN_WIDTH - 20);
+#endif
CFont::SetCentreOn();
CFont::SetPropOn();
CFont::SetColor(CRGBA(255, 255, 200, 200));
@@ -3349,10 +3357,18 @@ void CPad::PrintErrorMessage(void)
else if ( bObsoleteControllerMessage )
{
CSprite2d::DrawRect(CRect(SCREEN_STRETCH_X(20.0f), SCREEN_SCALE_FROM_BOTTOM(130.0f), SCREEN_STRETCH_FROM_RIGHT(20.0f), SCREEN_SCALE_Y(140.0f)), CRGBA(50, 50, 50, 210));
+#ifdef FIX_BUGS
CFont::SetScale(SCREEN_SCALE_X(0.85f), SCREEN_SCALE_Y(1.0f));
+#else
+ CFont::SetScale(0.85f, 1.0f);
+#endif
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
- CFont::SetCentreSize(SCREEN_SCALE_X(590.0f));
+#ifdef FIX_BUGS
+ CFont::SetCentreSize(SCREEN_SCALE_X(DEFAULT_SCREEN_WIDTH - 20));
+#else
+ CFont::SetCentreSize(SCREEN_WIDTH - 20);
+#endif
CFont::SetCentreOn();
CFont::SetPropOn();
CFont::SetColor(CRGBA(255, 255, 200, 200));