summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 17:31:48 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 17:31:48 +0100
commit368d2f3279b474056e888dcccea234f32614b506 (patch)
tree6ab081b692b3a7e9185076049d4f0655565235e8 /src/render/Sprite.cpp
parentupd (diff)
downloadre3-368d2f3279b474056e888dcccea234f32614b506.tar
re3-368d2f3279b474056e888dcccea234f32614b506.tar.gz
re3-368d2f3279b474056e888dcccea234f32614b506.tar.bz2
re3-368d2f3279b474056e888dcccea234f32614b506.tar.lz
re3-368d2f3279b474056e888dcccea234f32614b506.tar.xz
re3-368d2f3279b474056e888dcccea234f32614b506.tar.zst
re3-368d2f3279b474056e888dcccea234f32614b506.zip
Diffstat (limited to 'src/render/Sprite.cpp')
-rw-r--r--src/render/Sprite.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp
index 390737f3..c31c75d2 100644
--- a/src/render/Sprite.cpp
+++ b/src/render/Sprite.cpp
@@ -37,13 +37,12 @@ CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh,
// this is used to scale correctly if you zoom in with sniper rifle
float fovScale = fov / CDraw::GetFOV();
+#ifdef FIX_SPRITES
+ *outw = fovScale * recip * SCREEN_HEIGHT;
+#else
*outw = fovScale * SCREEN_SCALE_AR(recip) * SCREEN_WIDTH;
- *outh = fovScale * recip * SCREEN_HEIGHT;
-
-#ifdef ASPECT_RATIO_SCALE
- if ( CDraw::ms_bFixSprites )
- *outw = fovScale * recip * SCREEN_HEIGHT;
#endif
+ *outh = fovScale * recip * SCREEN_HEIGHT;
return true;
}