summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-19 15:21:22 +0100
committeraap <aap@papnet.eu>2020-11-19 15:21:22 +0100
commit856e424c76df4251a45c4f64e9f3102201fae236 (patch)
treec8c8180677d54bb0c9d63b347de93b2cbc9f3f52 /src/render/Hud.cpp
parentno static runtime for external librw (diff)
parentMerge pull request #822 from aap/master (diff)
downloadre3-856e424c76df4251a45c4f64e9f3102201fae236.tar
re3-856e424c76df4251a45c4f64e9f3102201fae236.tar.gz
re3-856e424c76df4251a45c4f64e9f3102201fae236.tar.bz2
re3-856e424c76df4251a45c4f64e9f3102201fae236.tar.lz
re3-856e424c76df4251a45c4f64e9f3102201fae236.tar.xz
re3-856e424c76df4251a45c4f64e9f3102201fae236.tar.zst
re3-856e424c76df4251a45c4f64e9f3102201fae236.zip
Diffstat (limited to '')
-rw-r--r--src/render/Hud.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index de3128ce..1a39e1c7 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -926,11 +926,20 @@ void CHud::Draw()
CFont::SetJustifyOff();
CFont::SetBackgroundOff();
CFont::SetBackgroundColor(CRGBA(0, 0, 0, 128));
- CFont::SetScale(SCREEN_SCALE_X(0.48f), SCREEN_SCALE_Y(1.120f));
+ CFont::SetScale(SCREEN_SCALE_X(0.48f), SCREEN_SCALE_Y(1.12f));
CFont::SetCentreOn();
CFont::SetPropOn();
CFont::SetFontStyle(FONT_LOCALE(FONT_BANK));
+#ifdef XBOX_SUBTITLES
+ float radarBulge = SCREEN_SCALE_X(45.0f) + SCREEN_SCALE_X(16.0f);
+ float rectWidth = SCREEN_WIDTH - SCREEN_SCALE_X(45.0f) - SCREEN_SCALE_X(16.0f) - radarBulge;
+ CFont::SetCentreSize(rectWidth);
+ CFont::SetColor(CRGBA(180, 180, 180, 255));
+
+ CFont::PrintOutlinedString(rectWidth / 2.0f + radarBulge, SCREEN_SCALE_Y(4.0f) + SCREEN_SCALE_FROM_BOTTOM(48.0f) - SCREEN_SCALE_Y(1), m_Message,
+ 2.0f, true, CRGBA(0, 0, 0, 255));
+#else
float radarBulge = SCREEN_SCALE_X(40.0f) + SCREEN_SCALE_X(8.0f);
float rectWidth = SCREEN_WIDTH - SCREEN_SCALE_X(50.0f) - SCREEN_SCALE_X(8.0f) - radarBulge;
CFont::SetCentreSize(rectWidth);
@@ -943,6 +952,7 @@ void CHud::Draw()
// I'm not sure shadow substaction was intentional here, might be a leftover if CFont::PrintString was used for a shadow draw call
CFont::PrintString(rectWidth / 2.0f + radarBulge - SCREEN_SCALE_X(shadow), SCREEN_SCALE_Y(4.0f) + SCREEN_SCALE_FROM_BOTTOM(68.0f) - SCREEN_SCALE_Y(shadow), m_Message);
CFont::SetDropShadowPosition(0);
+#endif
}
/*