diff options
author | _AG <gennariarmando@outlook.com> | 2019-07-02 13:59:19 +0200 |
---|---|---|
committer | _AG <gennariarmando@outlook.com> | 2019-07-02 14:36:40 +0200 |
commit | 6c693e3bbfe46cb445e4664eb91ef85c811a6240 (patch) | |
tree | d088600e9f1a18be005476d7a43a7232ccd1764f /src/common.h | |
parent | Merge pull request #86 from erorcun/erorcun (diff) | |
download | re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.gz re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.bz2 re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.lz re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.xz re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.tar.zst re3-6c693e3bbfe46cb445e4664eb91ef85c811a6240.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index f959de42..a8a99ec9 100644 --- a/src/common.h +++ b/src/common.h @@ -82,6 +82,7 @@ extern void **rwengine; #define SCREEN_STRETCH_FROM_BOTTOM(a) float(SCREEN_HEIGHT - SCREEN_STRETCH_Y(a)) #define SCREEN_MULTIPLIER (CDraw::GetScreenMult()) +#define SCREEN_COORD(a) (a * SCREEN_ASPECT_RATIO) #define SCREEN_SCALE(a) float((a) * (4.0f / 3.0f) / SCREEN_ASPECT_RATIO) #define SCREEN_SCALE_X(a) SCREEN_SCALE(SCREEN_STRETCH_X(a) * SCREEN_MULTIPLIER) #define SCREEN_SCALE_Y(a) (SCREEN_STRETCH_Y(a) * SCREEN_MULTIPLIER) |