summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
commita5239b554fa13aaf0ffa5ee850402f71cd680d29 (patch)
tree47ac7800bd86e5674fee2b6fc3a797647570e6cb /src/core/common.h
parentMerge pull request #393 from Sergeanur/txdimg (diff)
parentPS2 Cheats, restored R*names (diff)
downloadre3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.gz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.bz2
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.lz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.xz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.zst
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.zip
Diffstat (limited to '')
-rw-r--r--src/core/common.h2
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)