summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-16 19:06:01 +0200
committeraap <aap@papnet.eu>2019-06-16 19:06:01 +0200
commit2a207af49a922fe65bb3e69489aa3e075b72c3e3 (patch)
tree84a2905bb318205f01481a2512178c36133a63ea /src/common.h
parentMerge pull request #17 from gennariarmando/master (diff)
downloadre3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.gz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.bz2
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.lz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.xz
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.tar.zst
re3-2a207af49a922fe65bb3e69489aa3e075b72c3e3.zip
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index d31ad18c..9635f01e 100644
--- a/src/common.h
+++ b/src/common.h
@@ -70,11 +70,15 @@ extern void **rwengine;
#define DEFAULT_SCREEN_HEIGHT (448)
#define SCREEN_WIDTH Float(RsGlobal.width)
#define SCREEN_HEIGHT Float(RsGlobal.height)
-#define SCREEN_STRETCH_X(a) Float((a) * (SCREEN_WIDTH / Float(DEFAULT_SCREEN_WIDTH))) * Float((1.3333334f) / (SCREEN_ASPECT_RATIO))
+#define SCREEN_STRETCH_X(a) Float((a) * (SCREEN_WIDTH / Float(DEFAULT_SCREEN_WIDTH)))
+#define SCREEN_STRETCH_X_AR(a) Float((a) * (SCREEN_WIDTH / Float(DEFAULT_SCREEN_WIDTH)) * (4.0/3.0f)/SCREEN_ASPECT_RATIO)
#define SCREEN_STRETCH_Y(a) Float((a) * (SCREEN_HEIGHT / Float(DEFAULT_SCREEN_HEIGHT)))
#define SCREEN_FROM_RIGHT(a) Float(SCREEN_WIDTH - SCREEN_STRETCH_X(a))
#define SCREEN_FROM_BOTTOM(a) Float(SCREEN_HEIGHT - SCREEN_STRETCH_Y(a))
+#define HUD_STRETCH_X SCREEN_STRETCH_X_AR
+#define HUD_STRETCH_Y SCREEN_STRETCH_Y
+
struct GlobalScene
{
RpWorld *world;