summaryrefslogtreecommitdiffstats
path: root/src/render/Draw.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-21 14:50:00 +0200
committeraap <aap@papnet.eu>2020-06-21 14:50:00 +0200
commit98baa36f1a83362a67c46c2eb75539876b64b5b9 (patch)
treeb8051af78f2479d156729b640b5b336158b1f22a /src/render/Draw.cpp
parentps2 cam transitions done (hopefully) (diff)
downloadre3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar.gz
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar.bz2
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar.lz
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar.xz
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.tar.zst
re3-98baa36f1a83362a67c46c2eb75539876b64b5b9.zip
Diffstat (limited to '')
-rw-r--r--src/render/Draw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp
index b31cc624..bb37a3a3 100644
--- a/src/render/Draw.cpp
+++ b/src/render/Draw.cpp
@@ -6,6 +6,7 @@
#ifdef ASPECT_RATIO_SCALE
float CDraw::ms_fAspectRatio = DEFAULT_ASPECT_RATIO;
+float CDraw::ms_fScaledFOV = 45.0f;
#endif
float CDraw::ms_fNearClipZ;
@@ -61,8 +62,7 @@ void
CDraw::SetFOV(float fov)
{
#ifdef ASPECT_RATIO_SCALE
- ms_fFOV = ConvertFOV(fov);
-#else
- ms_fFOV = fov;
+ ms_fScaledFOV = ConvertFOV(fov);
#endif
+ ms_fFOV = fov;
}