diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 18:21:16 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-27 18:22:21 +0200 |
commit | 70aac0f460a9e57956de00ae5d84d8bb4bf4643c (patch) | |
tree | 92e3d8073b6e9e4ad8ae3ee7d8a2460c7e079cca /src/core/common.h | |
parent | Fixes (diff) | |
download | re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.gz re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.bz2 re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.lz re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.xz re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.tar.zst re3-70aac0f460a9e57956de00ae5d84d8bb4bf4643c.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index e876c4ec..9b5c2369 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -144,8 +144,11 @@ inline uint32 ldb(uint32 p, uint32 s, uint32 w) #ifdef ASPECT_RATIO_SCALE #define SCREEN_SCALE_AR(a) ((a) * DEFAULT_ASPECT_RATIO / SCREEN_ASPECT_RATIO) +extern float ScaleAndCenterX(float x); +#define SCALE_AND_CENTER_X(x) ScaleAndCenterX(x) #else #define SCREEN_SCALE_AR(a) (a) +#define SCALE_AND_CENTER_X(x) SCREEN_STRETCH_X(x) #endif #include "maths.h" |