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 | f4146d39a266b83cef8e81bc62bcc77032c3b13c (diff) |
Update CRadar.cpp, CHud.cpp, CDraw.cpp fixed bug in templates.h.
Diffstat (limited to 'src/render/Draw.cpp')
-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) |