diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-12-29 18:24:16 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-12-29 18:24:16 +0100 |
commit | 224e805fe4e7a4d5366b228072834674f77fa0ba (patch) | |
tree | e28b27bea8a0b8c5d78b1a67231713c58f430e9f /src/render/Hud.cpp | |
parent | Merge branch 'master' of github.com:GTAmodding/re3 (diff) | |
download | re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar.gz re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar.bz2 re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar.lz re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar.xz re3-224e805fe4e7a4d5366b228072834674f77fa0ba.tar.zst re3-224e805fe4e7a4d5366b228072834674f77fa0ba.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Hud.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index dcc703e9..9a2f718f 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -1186,9 +1186,14 @@ void CHud::Draw() /* DrawRadar */ +#ifdef ASPECT_RATIO_SCALE +#define _RADAR_WIDTH ((CMenuManager::m_PrefsSpriteScalingMode==SCL_AUTO) ? (RADAR_HEIGHT) : (RADAR_WIDTH)) +#else +#define _RADAR_WIDTH RADAR_WIDTH +#endif 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)); + CRect rect(0.0f, 0.0f, SCREEN_SCALE_X(_RADAR_WIDTH), SCREEN_SCALE_Y(RADAR_HEIGHT)); #ifdef FIX_BUGS rect.Translate(SCREEN_SCALE_X(RADAR_LEFT), SCREEN_SCALE_FROM_BOTTOM(RADAR_BOTTOM + RADAR_HEIGHT)); #else |