mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-25 10:34:33 +00:00
dirty fix to gamma bug.. (it doesnt look the same tho...)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
BIN
Minecraft.Client/Windows64/GameHDD/20260304000018/saveData.ms
Normal file
BIN
Minecraft.Client/Windows64/GameHDD/20260304000018/saveData.ms
Normal file
Binary file not shown.
Reference in New Issue
Block a user