VideoCommon: Silence -Wsign-compare warnings.
This commit is contained in:
parent
81414b4fa2
commit
18f0831861
|
@ -97,10 +97,10 @@ void VideoConfig::Load(const std::string& ini_file)
|
||||||
enhancements->Get("StereoSwapEyes", &bStereoSwapEyes, false);
|
enhancements->Get("StereoSwapEyes", &bStereoSwapEyes, false);
|
||||||
|
|
||||||
//currently these settings are not saved in global config, so we could've initialized them directly
|
//currently these settings are not saved in global config, so we could've initialized them directly
|
||||||
for (int i = 0; i < oStereoPresets.size(); ++i)
|
for (size_t i = 0; i < oStereoPresets.size(); ++i)
|
||||||
{
|
{
|
||||||
enhancements->Get(StringFromFormat("StereoConvergence_%d", i), &oStereoPresets[i].depth, iStereoConvergence);
|
enhancements->Get(StringFromFormat("StereoConvergence_%zu", i), &oStereoPresets[i].depth, iStereoConvergence);
|
||||||
enhancements->Get(StringFromFormat("StereoDepth_%d", i), &oStereoPresets[i].convergence, iStereoDepth);
|
enhancements->Get(StringFromFormat("StereoDepth_%zu", i), &oStereoPresets[i].convergence, iStereoDepth);
|
||||||
}
|
}
|
||||||
enhancements->Get("StereoActivePreset", &iStereoActivePreset, 0);
|
enhancements->Get("StereoActivePreset", &iStereoActivePreset, 0);
|
||||||
iStereoConvergence = oStereoPresets[iStereoActivePreset].convergence;
|
iStereoConvergence = oStereoPresets[iStereoActivePreset].convergence;
|
||||||
|
@ -212,10 +212,10 @@ void VideoConfig::GameIniLoad()
|
||||||
|
|
||||||
//these are not overrides, they are per-game settings, hence no warning
|
//these are not overrides, they are per-game settings, hence no warning
|
||||||
IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements");
|
IniFile::Section* enhancements = iniFile.GetOrCreateSection("Enhancements");
|
||||||
for (int i = 0; i < oStereoPresets.size(); ++i)
|
for (size_t i = 0; i < oStereoPresets.size(); ++i)
|
||||||
{
|
{
|
||||||
enhancements->Get(StringFromFormat("StereoConvergence_%d", i), &oStereoPresets[i].depth, iStereoConvergence);
|
enhancements->Get(StringFromFormat("StereoConvergence_%zu", i), &oStereoPresets[i].depth, iStereoConvergence);
|
||||||
enhancements->Get(StringFromFormat("StereoDepth_%d", i), &oStereoPresets[i].convergence, iStereoDepth);
|
enhancements->Get(StringFromFormat("StereoDepth_%zu", i), &oStereoPresets[i].convergence, iStereoDepth);
|
||||||
}
|
}
|
||||||
enhancements->Get("StereoActivePreset", &iStereoActivePreset, 0);
|
enhancements->Get("StereoActivePreset", &iStereoActivePreset, 0);
|
||||||
iStereoConvergence = oStereoPresets[iStereoActivePreset].convergence;
|
iStereoConvergence = oStereoPresets[iStereoActivePreset].convergence;
|
||||||
|
|
Loading…
Reference in New Issue