diff options
author | aap <aap@papnet.eu> | 2019-06-23 13:11:41 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-23 13:11:41 +0200 |
commit | a5ba53896881ec479f9819ab0349437de4c3f4ed (patch) | |
tree | 89471ebfcd3b95fdb3b35a13bcdb605d27694973 /src/render | |
parent | 047fa20f28890176e0d86191b3a9fd459d967785 (diff) |
some Radar and Hud cleanup; fix in Physical
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Hud.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index 23a796e6..a17d5c2c 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -856,7 +856,11 @@ void CHud::Draw() */ if (CHud::m_ItemToFlash == ITEM_RADAR && CTimer::GetFrameCounter() & 8 || CHud::m_ItemToFlash != ITEM_RADAR) { CRadar::DrawMap(); - CHud::Sprites[HUD_RADARDISC].Draw(CRect(SCREEN_SCALE_X(16.0f), SCREEN_SCALE_FROM_BOTTOM(123.0f + 4.0f), SCREEN_SCALE_X(94.0f + 20.0f + 5.0f), SCREEN_SCALE_FROM_BOTTOM(-76.0f + 123.0f - 6.0f)), CRGBA(0, 0, 0, 255)); + CRect rect(0.0f, 0.0f, SCREEN_SCALE_X(RADAR_WIDTH), SCREEN_SCALE_Y(RADAR_HEIGHT)); + // FIX: game doesn't scale RADAR_LEFT here + rect.Translate(SCREEN_SCALE_X(RADAR_LEFT), SCREEN_SCALE_FROM_BOTTOM(RADAR_BOTTOM + RADAR_HEIGHT)); + rect.Grow(4.0f); + CHud::Sprites[HUD_RADARDISC].Draw(rect, CRGBA(0, 0, 0, 255)); CRadar::DrawBlips(); } } |