diff options
author | aap <aap@papnet.eu> | 2020-06-21 14:50:00 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-21 14:52:44 +0200 |
commit | 60f736f20fe9493936dab95963b52b18d3353ffc (patch) | |
tree | 40a934885b26e9d44e88a4dd3965627ecfddd364 /src/core/common.h | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.gz re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.bz2 re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.lz re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.xz re3-60f736f20fe9493936dab95963b52b18d3353ffc.tar.zst re3-60f736f20fe9493936dab95963b52b18d3353ffc.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h index eb43d8d5..d7c9a1f7 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) |