mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-25 04:04:46 +00:00
Uhh i forgot to add this change to git
This commit is contained in:
@@ -605,9 +605,9 @@ void GameRenderer::unZoomRegion()
|
||||
void GameRenderer::getFovAndAspect(float& fov, float& aspect, float a, bool applyEffects)
|
||||
{
|
||||
// Use the real window dimensions so the perspective updates on resize.
|
||||
extern int g_rScreenWidth;
|
||||
extern int g_rScreenHeight;
|
||||
aspect = g_rScreenWidth / static_cast<float>(g_rScreenHeight);
|
||||
extern int g_iScreenWidth;
|
||||
extern int g_iScreenHeight;
|
||||
aspect = g_iScreenWidth / static_cast<float>(g_iScreenHeight);
|
||||
fov = getFov(a, applyEffects);
|
||||
|
||||
if( ( mc->player->m_iScreenSection == C4JRender::VIEWPORT_TYPE_SPLIT_TOP ) ||
|
||||
@@ -1079,15 +1079,15 @@ void GameRenderer::CachePlayerGammas()
|
||||
|
||||
bool GameRenderer::ComputeViewportForPlayer(int j, D3D11_VIEWPORT &outViewport) const
|
||||
{
|
||||
extern int g_rScreenWidth;
|
||||
extern int g_rScreenHeight;
|
||||
extern int g_iScreenWidth;
|
||||
extern int g_iScreenHeight;
|
||||
|
||||
std::shared_ptr<MultiplayerLocalPlayer> player = Minecraft::GetInstance()->localplayers[j];
|
||||
if (!player)
|
||||
return false;
|
||||
|
||||
const float w = static_cast<float>(g_rScreenWidth);
|
||||
const float h = static_cast<float>(g_rScreenHeight);
|
||||
const float w = static_cast<float>(g_iScreenWidth);
|
||||
const float h = static_cast<float>(g_iScreenHeight);
|
||||
const float halfW = w * 0.5f;
|
||||
const float halfH = h * 0.5f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user