1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

GLideNUI-wtl: Do not flush on each change, so turn off auto flush

This commit is contained in:
zilmar 2020-04-27 14:07:14 +09:30 committed by Sergey Lipskiy
parent 29bd0d10ab
commit 115399aa4b

View File

@ -11,6 +11,7 @@ GlColor::GlColor(uint8_t Red, uint8_t Green, uint8_t Blue, uint8_t Alpha) :
GlSettings::GlSettings(const char * IniFile) :
m_IniFile(IniFile)
{
m_IniFile.SetAutoFlush(false);
m_CurrentSection = "General";
}
@ -240,7 +241,7 @@ GlColor GlSettingValue::toGlColor() const
Alpha = ParseGlColor(tokens[13].c_str());
}
}
return GlColor(Red, Green, Blue, Alpha);
}
@ -248,7 +249,7 @@ uint8_t GlSettingValue::ParseGlColor(const char * color)
{
if (color == NULL) { return 0; }
if (color[0] == '0') { return 0; }
if (color[0] == 'x')
if (color[0] == 'x')
{
uint32_t Value = 0;
#pragma warning(disable: 4996)