summaryrefslogtreecommitdiffstats
path: root/src/render/Sprite.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-07-17 20:15:47 +0200
committerSergeanur <s.anureev@yandex.ua>2020-07-17 20:15:47 +0200
commit30384bb4efa5905051859eb931883e7401056c66 (patch)
tree16c3c6f2b7c8b4478c56c587a3b2fc3ce97e5a42 /src/render/Sprite.cpp
parentMerge branch 'master' into miami (diff)
parentAdd fix/workaround for black screen at startup (diff)
downloadre3-30384bb4efa5905051859eb931883e7401056c66.tar
re3-30384bb4efa5905051859eb931883e7401056c66.tar.gz
re3-30384bb4efa5905051859eb931883e7401056c66.tar.bz2
re3-30384bb4efa5905051859eb931883e7401056c66.tar.lz
re3-30384bb4efa5905051859eb931883e7401056c66.tar.xz
re3-30384bb4efa5905051859eb931883e7401056c66.tar.zst
re3-30384bb4efa5905051859eb931883e7401056c66.zip
Diffstat (limited to 'src/render/Sprite.cpp')
-rw-r--r--src/render/Sprite.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp
index a6d2db7b..f26f8e63 100644
--- a/src/render/Sprite.cpp
+++ b/src/render/Sprite.cpp
@@ -29,11 +29,7 @@ CSprite::CalcScreenCoors(const RwV3d &in, RwV3d *out, float *outw, float *outh,
float recip = 1.0f/out->z;
out->x *= SCREEN_WIDTH * recip;
out->y *= SCREEN_HEIGHT * recip;
-#ifdef ASPECT_RATIO_SCALE
- float fov = CDraw::ConvertFOV(DefaultFOV);
-#else
const float fov = DefaultFOV;
-#endif
// this is used to scale correctly if you zoom in with sniper rifle
float fovScale = fov / CDraw::GetFOV();