diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-09 01:52:38 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-09 01:52:38 +0200 |
commit | 37691701138c8a458bc8b41944745000d27a3b83 (patch) | |
tree | bcfad8fa942aef410f6a4ad066da7a63d8a49ed8 /src/core/common.h | |
parent | Fix target sprite size (diff) | |
download | re3-37691701138c8a458bc8b41944745000d27a3b83.tar re3-37691701138c8a458bc8b41944745000d27a3b83.tar.gz re3-37691701138c8a458bc8b41944745000d27a3b83.tar.bz2 re3-37691701138c8a458bc8b41944745000d27a3b83.tar.lz re3-37691701138c8a458bc8b41944745000d27a3b83.tar.xz re3-37691701138c8a458bc8b41944745000d27a3b83.tar.zst re3-37691701138c8a458bc8b41944745000d27a3b83.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index b58b93af..9b897cca 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -84,12 +84,14 @@ extern void **rwengine; #define DEFAULT_SCREEN_WIDTH (640) #define DEFAULT_SCREEN_HEIGHT (448) #define DEFAULT_ASPECT_RATIO (4.0f/3.0f) +#define DEFAULT_VIEWWINDOW (0.7f) // game uses maximumWidth/Height, but this probably won't work // with RW windowed mode #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))) // This scales from PS2 pixel coordinates to the real resolution #define SCREEN_STRETCH_X(a) ((a) * (float) SCREEN_WIDTH / DEFAULT_SCREEN_WIDTH) |