diff options
author | _AG <gennariarmando@outlook.com> | 2019-06-20 02:31:03 +0200 |
---|---|---|
committer | _AG <gennariarmando@outlook.com> | 2019-06-20 02:32:36 +0200 |
commit | 2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd (patch) | |
tree | 4cbfefeedd462f46b29d4b1c9004f17eefebc364 /src/render/Draw.cpp | |
parent | finally finished CVehicleModelInfo (diff) | |
download | re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar.gz re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar.bz2 re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar.lz re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar.xz re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.tar.zst re3-2ce7bcc405daf1b01f9220e7b584bc7c318ec5cd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Draw.cpp | 3 |
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) |