aboutsummaryrefslogtreecommitdiff
path: root/src/core/common.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-27 19:21:16 +0300
committereray orçunus <erayorcunus@gmail.com>2020-09-27 19:22:21 +0300
commit70aac0f460a9e57956de00ae5d84d8bb4bf4643c (patch)
tree92e3d8073b6e9e4ad8ae3ee7d8a2460c7e079cca /src/core/common.h
parent9b7642454006f4c6b93d57297f88b2899e3f0077 (diff)
Fixes: PS2/PS2-like menu, Hud, new sliding text found
Diffstat (limited to 'src/core/common.h')
-rw-r--r--src/core/common.h3
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"