summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 21:30:30 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 21:30:30 +0100
commit00d23c61d99a0a676de2219da42d576b5c5c0474 (patch)
tree2a6d74663312bdb01b5ae1fd9abbd1c8fc5d857f /src/render/Sprite.cpp
parentMerge pull request #909 from Fire-Head/master (diff)
downloadre3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.gz
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.bz2
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.lz
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.xz
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.tar.zst
re3-00d23c61d99a0a676de2219da42d576b5c5c0474.zip
Diffstat (limited to 'src/render/Sprite.cpp')
-rw-r--r--src/render/Sprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp
index c31c75d2..a441e08b 100644
--- a/src/render/Sprite.cpp
+++ b/src/render/Sprite.cpp
@@ -38,7 +38,7 @@ CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh,
float fovScale = fov / CDraw::GetFOV();
#ifdef FIX_SPRITES
- *outw = fovScale * recip * SCREEN_HEIGHT;
+ *outw = CDraw::ms_bFixSprites ? (fovScale * recip * SCREEN_HEIGHT) : (fovScale * SCREEN_SCALE_AR(recip) * SCREEN_WIDTH);
#else
*outw = fovScale * SCREEN_SCALE_AR(recip) * SCREEN_WIDTH;
#endif