diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 21:46:29 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 21:46:29 +0100 |
| commit | 7b7ce638f41e706ca24147d680ff16b55d4f2dd0 (patch) | |
| tree | 90052c4e4e30913f5959da6895e7bd698b782f23 /src/config/ConfigManager.cpp | |
| parent | 3277321c26820ff0e3459c3d57cd5ce2b2855dff (diff) | |
refresh rates
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 319d0303..24195991 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -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(); |
