refresh rates

This commit is contained in:
vaxerski
2022-03-19 21:46:29 +01:00
parent 3277321c26
commit 7b7ce638f4
5 changed files with 17 additions and 7 deletions

View File

@@ -112,7 +112,10 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
nextItem();
newrule.resolution.x = stoi(curitem.substr(0, curitem.find_first_of('x')));
newrule.resolution.y = stoi(curitem.substr(curitem.find_first_of('x') + 1));
newrule.resolution.y = stoi(curitem.substr(curitem.find_first_of('x') + 1, curitem.find_first_of('@')));
if (curitem.find_first_of('@') != std::string::npos)
newrule.refreshRate = stof(curitem.substr(curitem.find_first_of('@') + 1));
nextItem();