diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-07 14:08:39 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-07 14:08:39 +0200 |
commit | 1df8e7976fd474225060cb7b4ac34bac6ef29906 (patch) | |
tree | 74c4f2d668ddfc002ca34e2081d3a45a526375ab /src/core/PlayerSkin.cpp | |
parent | CHud::Draw - removed render states, readded hud toogle with second controller (diff) | |
download | re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar.gz re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar.bz2 re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar.lz re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar.xz re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.tar.zst re3-1df8e7976fd474225060cb7b4ac34bac6ef29906.zip |
Diffstat (limited to 'src/core/PlayerSkin.cpp')
-rw-r--r-- | src/core/PlayerSkin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/PlayerSkin.cpp b/src/core/PlayerSkin.cpp index 111333ec..82427491 100644 --- a/src/core/PlayerSkin.cpp +++ b/src/core/PlayerSkin.cpp @@ -137,11 +137,15 @@ CPlayerSkin::RenderFrontendSkinEdit(void) {
static float rotation = 0.0f;
RwRGBAReal AmbientColor = { 0.65f, 0.65f, 0.65f, 1.0f };
- const RwV3d pos = { 1.35f, 0.35f, 7.725f };
+ RwV3d pos = { 1.35f, 0.35f, 7.725f };
const RwV3d axis1 = { 1.0f, 0.0f, 0.0f };
const RwV3d axis2 = { 0.0f, 0.0f, 1.0f };
static uint32 LastFlash = 0;
+#ifdef ASPECT_RATIO_SCALE
+ pos.x = 1.35f * (SCREEN_ASPECT_RATIO / DEFAULT_ASPECT_RATIO);
+#endif
+
RwFrame *frame = RpClumpGetFrame(gpPlayerClump);
if (CTimer::GetTimeInMillisecondsPauseMode() - LastFlash > 7) {
|