diff options
author | aap <aap@papnet.eu> | 2019-10-05 17:17:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-05 17:17:29 +0200 |
commit | c06f139530dea1fd69bd7153518a10ee37552473 (patch) | |
tree | 71100a28e2fe5cee928b5cc6133cf56917f3ca3b /src/core | |
parent | Triangular radar blips (diff) | |
parent | Corona widescreen fix (diff) | |
download | re3-c06f139530dea1fd69bd7153518a10ee37552473.tar re3-c06f139530dea1fd69bd7153518a10ee37552473.tar.gz re3-c06f139530dea1fd69bd7153518a10ee37552473.tar.bz2 re3-c06f139530dea1fd69bd7153518a10ee37552473.tar.lz re3-c06f139530dea1fd69bd7153518a10ee37552473.tar.xz re3-c06f139530dea1fd69bd7153518a10ee37552473.tar.zst re3-c06f139530dea1fd69bd7153518a10ee37552473.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h index b3a271c6..caa305d6 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -92,9 +92,11 @@ extern void **rwengine; #define SCREEN_SCALE_FROM_BOTTOM(a) (SCREEN_HEIGHT - SCREEN_SCALE_Y(a)) #ifdef ASPECT_RATIO_SCALE -#define SCREEN_SCALE_AR(a) ((a) * (4.0f / 3.0f) / SCREEN_ASPECT_RATIO) +#define SCREEN_SCALE_AR(a) ((a) * DEFAULT_ASPECT_RATIO / SCREEN_ASPECT_RATIO) +#define SCREEN_SCALE_AR2(a) ((a) / (DEFAULT_ASPECT_RATIO / SCREEN_ASPECT_RATIO)) #else #define SCREEN_SCALE_AR(a) (a) +#define SCREEN_SCALE_AR2(a) (a) #endif #include "maths.h" |