summaryrefslogtreecommitdiffstats
path: root/src/Radar.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-16 19:06:01 +0200
committeraap <aap@papnet.eu>2019-06-16 19:06:01 +0200
commit2a207af49a922fe65bb3e69489aa3e075b72c3e3 (patch)
tree84a2905bb318205f01481a2512178c36133a63ea /src/Radar.cpp
parentMerge pull request #17 from gennariarmando/master (diff)
downloadre3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.gz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.bz2
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.lz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.xz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.zst
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.zip
Diffstat (limited to '')
-rw-r--r--src/Radar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Radar.cpp b/src/Radar.cpp
index 3b2d6b26..63a84680 100644
--- a/src/Radar.cpp
+++ b/src/Radar.cpp
@@ -38,8 +38,8 @@ void CRadar::DrawMap() {
}
void CRadar::TransformRadarPointToScreenSpace(CVector2D *out, CVector2D *in) {
- out->x = in->x * SCREEN_STRETCH_X(47.0f) + SCREEN_STRETCH_X(47.0f + 20.0f);
- out->y = (SCREEN_STRETCH_Y(76.0f)) * 0.5f + RsGlobal.height - (SCREEN_STRETCH_Y(123.0f)) - in->y * (SCREEN_STRETCH_Y(76.0f)) * 0.5f;
+ out->x = in->x * HUD_STRETCH_X(47.0f) + HUD_STRETCH_X(47.0f + 20.0f);
+ out->y = (HUD_STRETCH_Y(76.0f)) * 0.5f + SCREEN_HEIGHT - (HUD_STRETCH_Y(123.0f)) - in->y * (HUD_STRETCH_Y(76.0f)) * 0.5f;
}
STARTPATCHES