Uhh i forgot to add this change to git

This commit is contained in:
GabsPuNs
2026-05-20 16:43:38 -04:00
parent 4216b72ae2
commit db0eea66da

View File

@@ -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;