mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-07-23 17:47:05 +00:00
revert
This commit is contained in:
parent
f77e79dd69
commit
eda3cdddf4
|
|
@ -692,7 +692,7 @@ int CMinecraftApp::SetDefaultOptions(C_4JProfile::PROFILESETTINGS *pSettings,con
|
||||||
{
|
{
|
||||||
SetGameSettings(iPad,eGameSetting_MusicVolume,DEFAULT_VOLUME_LEVEL);
|
SetGameSettings(iPad,eGameSetting_MusicVolume,DEFAULT_VOLUME_LEVEL);
|
||||||
SetGameSettings(iPad,eGameSetting_SoundFXVolume,DEFAULT_VOLUME_LEVEL);
|
SetGameSettings(iPad,eGameSetting_SoundFXVolume,DEFAULT_VOLUME_LEVEL);
|
||||||
SetGameSettings(iPad,eGameSetting_Gamma,50);
|
SetGameSettings(iPad,eGameSetting_Gamma,100);
|
||||||
|
|
||||||
// 4J-PB - Don't reset the difficult level if we're in-game
|
// 4J-PB - Don't reset the difficult level if we're in-game
|
||||||
if(Minecraft::GetInstance()->level==NULL)
|
if(Minecraft::GetInstance()->level==NULL)
|
||||||
|
|
|
||||||
|
|
@ -360,10 +360,10 @@ void Windows64_UpdateGamma(unsigned short usGamma)
|
||||||
}
|
}
|
||||||
|
|
||||||
float gamma = (float)usGamma / 32768.0f;
|
float gamma = (float)usGamma / 32768.0f;
|
||||||
if (gamma < 0.0f) gamma = 0.0f;
|
if (gamma < 0.01f) gamma = 0.01f;
|
||||||
if (gamma > 1.0f) gamma = 1.0f;
|
if (gamma > 1.0f) gamma = 1.0f;
|
||||||
|
|
||||||
float invGamma = 1.0f - gamma * 0.5f;
|
float invGamma = 1.0f / (0.5f + gamma * 0.5f);
|
||||||
|
|
||||||
WORD ramp[3][256];
|
WORD ramp[3][256];
|
||||||
for (int i = 0; i < 256; i++)
|
for (int i = 0; i < 256; i++)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue