summaryrefslogtreecommitdiffstats
path: root/src/render/Draw.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-20 11:28:04 +0200
committerGitHub <noreply@github.com>2019-06-20 11:28:04 +0200
commit109cde810c7b6115f864cf3e5005111c17284ab9 (patch)
tree052fc5a6c687983435f8d0b871b2d9abff31f747 /src/render/Draw.cpp
parentfinally finished CVehicleModelInfo (diff)
parentFix bug in templates.h, again. (diff)
downloadre3-109cde810c7b6115f864cf3e5005111c17284ab9.tar
re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.gz
re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.bz2
re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.lz
re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.xz
re3-109cde810c7b6115f864cf3e5005111c17284ab9.tar.zst
re3-109cde810c7b6115f864cf3e5005111c17284ab9.zip
Diffstat (limited to '')
-rw-r--r--src/render/Draw.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Draw.cpp b/src/render/Draw.cpp
index b411176f..7fd2f604 100644
--- a/src/render/Draw.cpp
+++ b/src/render/Draw.cpp
@@ -5,6 +5,7 @@
#include "Camera.h"
float CDraw::ms_fAspectRatio;
+float CDraw::ms_fScreenMultiplier;
float &CDraw::ms_fNearClipZ = *(float*)0x8E2DC4;
float &CDraw::ms_fFarClipZ = *(float*)0x9434F0;
@@ -18,6 +19,8 @@ uint8 &CDraw::FadeBlue = *(uint8*)0x95CD53;
void
CDraw::CalculateAspectRatio()
{
+ SetScreenMult(DEFAULT_SCALE);
+
if(FrontEndMenuManager.m_PrefsUseWideScreen)
ms_fAspectRatio = 16.0f/9.0f;
else if(TheCamera.m_WideScreenOn)