dirty fix to gamma bug.. (it doesnt look the same tho...)

This commit is contained in:
LazyByteDev
2026-03-03 19:14:21 -05:00
parent e9ea11b861
commit 1f0fddeb97
3 changed files with 7 additions and 2 deletions

View File

@@ -1220,12 +1220,17 @@ void CMinecraftApp::ActionGameSettings(int iPad,eGameSetting eVal)
}
break;
case eGameSetting_Gamma:
#ifdef _WINDOWS64
pMinecraft->options->set(Options::Option::GAMMA, ((float)GameSettingsA[iPad]->ucGamma) / 100.0f);
#else
if(iPad==ProfileManager.GetPrimaryPad())
{
// ucGamma range is 0-100, UpdateGamma is 0 - 32768
float fVal=((float)GameSettingsA[iPad]->ucGamma)*327.68f;
RenderManager.UpdateGamma((unsigned short)fVal);
}
}
#endif
break;
case eGameSetting_Difficulty:

View File

@@ -928,7 +928,7 @@ void GameRenderer::updateLightTexture(float a)
}
}
float brightness = 0.0f; // 4J - TODO - was mc->options->gamma;
float brightness = mc->options->gamma; // 4J - TODO - was mc->options->gamma;
if (_r > 1) _r = 1;
if (_g > 1) _g = 1;
if (_b > 1) _b = 1;