diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-22 13:07:49 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-22 13:07:49 +0200 |
commit | fe77b2ac53526d32794f7ae5f24bf95161b184df (patch) | |
tree | 3a846c1c1e9eb05a22720c68faa343ff5ea02c94 /src/core | |
parent | fixes (diff) | |
parent | Merge pull request #637 from Nick007J/master (diff) | |
download | re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.gz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.bz2 re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.lz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.xz re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.tar.zst re3-fe77b2ac53526d32794f7ae5f24bf95161b184df.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Camera.cpp | 2 | ||||
-rw-r--r-- | src/core/common.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index f3f369f2..cc463f07 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -3561,7 +3561,7 @@ CCamera::CalculateDerivedValues(void) { m_cameraMatrix = Invert(m_matrix); - float hfov = DEGTORAD(CDraw::GetFOV()/2.0f); + float hfov = DEGTORAD(CDraw::GetScaledFOV()/2.0f); float c = cos(hfov); float s = sin(hfov); diff --git a/src/core/common.h b/src/core/common.h index ff1feb5c..196c3cd7 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -111,7 +111,7 @@ inline uint32 ldb(uint32 p, uint32 s, uint32 w) #define SCREEN_WIDTH ((float)RsGlobal.width) #define SCREEN_HEIGHT ((float)RsGlobal.height) #define SCREEN_ASPECT_RATIO (CDraw::GetAspectRatio()) -#define SCREEN_VIEWWINDOW (Tan(DEGTORAD(CDraw::GetFOV() * 0.5f))) +#define SCREEN_VIEWWINDOW (Tan(DEGTORAD(CDraw::GetScaledFOV() * 0.5f))) // This scales from PS2 pixel coordinates to the real resolution #define SCREEN_STRETCH_X(a) ((a) * (float) SCREEN_WIDTH / DEFAULT_SCREEN_WIDTH) |