optimize data feeding to gradient renderer

This commit is contained in:
vaxerski
2022-11-26 18:09:57 +00:00
parent 0948b078e1
commit 684c59e5bc
3 changed files with 8 additions and 13 deletions

View File

@@ -382,7 +382,7 @@ void CConfigManager::configSetValueSafe(const std::string& COMMAND, const std::s
}
try {
data->m_vColors.push_back(configStringToInt(var));
data->m_vColors.push_back(CColor(configStringToInt(var)) * (1.f / 255.f));
} catch (std::exception& e) {
Debug::log(WARN, "Error reading value of %s", COMMAND.c_str());
parseError = "Error setting value <" + VALUE + "> for field <" + COMMAND + ">. " + e.what();