summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-03 11:49:33 +0200
committeraap <aap@papnet.eu>2020-04-03 11:49:33 +0200
commit3b315fec264d1200ab08aa76e93a07859ebb24c1 (patch)
tree5820b697cb24dc935d9d52f23babf36798319d97 /src/render/Hud.cpp
parentCCamera fixes (diff)
parentMerge pull request #377 from Fire-Head/master (diff)
downloadre3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar.gz
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar.bz2
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar.lz
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar.xz
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.tar.zst
re3-3b315fec264d1200ab08aa76e93a07859ebb24c1.zip
Diffstat (limited to 'src/render/Hud.cpp')
-rw-r--r--src/render/Hud.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 2f523e17..c4aca8e4 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -793,8 +793,11 @@ void CHud::Draw()
if (m_ItemToFlash == ITEM_RADAR && CTimer::GetFrameCounter() & 8 || m_ItemToFlash != ITEM_RADAR) {
CRadar::DrawMap();
CRect rect(0.0f, 0.0f, SCREEN_SCALE_X(RADAR_WIDTH), SCREEN_SCALE_Y(RADAR_HEIGHT));
- // FIX? scale RADAR_LEFT here somehow
+#ifdef FIX_BUGS
+ rect.Translate(SCREEN_SCALE_X(RADAR_LEFT), SCREEN_SCALE_FROM_BOTTOM(RADAR_BOTTOM + RADAR_HEIGHT));
+#else
rect.Translate(RADAR_LEFT, SCREEN_SCALE_FROM_BOTTOM(RADAR_BOTTOM + RADAR_HEIGHT));
+#endif
rect.Grow(4.0f);
Sprites[HUD_RADARDISC].Draw(rect, CRGBA(0, 0, 0, 255));
CRadar::DrawBlips();
@@ -1094,7 +1097,6 @@ void CHud::DrawAfterFade()
CFont::SetColor(CRGBA(175, 175, 175, 255));
CFont::PrintString(SCREEN_SCALE_X(26.0f), SCREEN_SCALE_Y(28.0f + (150.0f - PagerXOffset) * 0.6f), CHud::m_HelpMessageToPrint);
CFont::SetAlphaFade(255.0f);
- CFont::DrawFonts();
}
}
else