summaryrefslogtreecommitdiffstats
path: root/src/render/Draw.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-05 02:17:18 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-05 02:17:18 +0100
commit11de714d9dbeabb59129d29acb9e433c538ba4ba (patch)
tree99e973277c2986aceb45886684cee34191cfa6e4 /src/render/Draw.cpp
parentfix compiling (diff)
downloadre3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar.gz
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar.bz2
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar.lz
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar.xz
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.tar.zst
re3-11de714d9dbeabb59129d29acb9e433c538ba4ba.zip
Diffstat (limited to 'src/render/Draw.cpp')
-rw-r--r--src/render/Draw.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp
index 2a4739c9..42015176 100644
--- a/src/render/Draw.cpp
+++ b/src/render/Draw.cpp
@@ -20,6 +20,12 @@ uint8 CDraw::FadeRed;
uint8 CDraw::FadeGreen;
uint8 CDraw::FadeBlue;
+#ifdef ASPECT_RATIO_SCALE
+int32 CDraw::ms_nScalingMode = SCL_PS2;
+int32 CDraw::ms_bFixRadar = true;
+int32 CDraw::ms_bFixSprites = true;
+#endif
+
float
CDraw::FindAspectRatio(void)
{
@@ -80,7 +86,7 @@ CDraw::SetFOV(float fov)
#ifdef ASPECT_RATIO_SCALE
float CDraw::ScaleY(float y)
{
- switch ( CMenuManager::m_PrefsSpriteScalingMode )
+ switch ( ms_nScalingMode )
{
case SCL_PC: return y * ((float)DEFAULT_SCREEN_HEIGHT/SCREEN_HEIGHT_NTSC);
default: