diff options
author | Colin Snover | 2017-11-04 20:10:54 -0500 |
---|---|---|
committer | Filippos Karapetis | 2018-08-26 15:33:44 +0300 |
commit | 81f78d4ddf2bee6164dd9cb90657d0666688603d (patch) | |
tree | dc5cf1a6e3454941013a5140b2342e2404bd7def /engines/bladerunner/view.cpp | |
parent | 6af0c77b5a8fb9176870b287e0eb18c99c82c102 (diff) | |
download | scummvm-rg350-81f78d4ddf2bee6164dd9cb90657d0666688603d.tar.gz scummvm-rg350-81f78d4ddf2bee6164dd9cb90657d0666688603d.tar.bz2 scummvm-rg350-81f78d4ddf2bee6164dd9cb90657d0666688603d.zip |
BLADERUNNER: Remove use of C99 math
C++ math functions are overloaded so operate using single-precision
when receiving a float input. The C standard library on FreeMiNT
does not fully support C99 math so use of sqrtf, sinf, etc.
instead of the C++ API does not work.
Diffstat (limited to 'engines/bladerunner/view.cpp')
-rw-r--r-- | engines/bladerunner/view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/view.cpp b/engines/bladerunner/view.cpp index 72c070ecc0..cb14f51ee5 100644 --- a/engines/bladerunner/view.cpp +++ b/engines/bladerunner/view.cpp @@ -51,7 +51,7 @@ void View::setFovX(float fovX) { _viewportPosition.x = 320.0f; _viewportPosition.y = 240.0f; - _viewportPosition.z = 320.0f / tanf(_fovX / 2.0f); + _viewportPosition.z = 320.0f / tan(_fovX / 2.0f); } void View::calculateSliceViewMatrix() { |