diff options
| author | Fabio Lenherr <fabio.lenherr@gmail.com> | 2022-09-22 00:22:39 +0200 |
|---|---|---|
| committer | Fabio Lenherr <fabio.lenherr@gmail.com> | 2022-09-22 00:22:39 +0200 |
| commit | 215125bd6657cfe742b33749943c01e31f079ebc (patch) | |
| tree | 5803906416b27693fcabdf9e20f28e0f8898e18f /src/config/ConfigManager.cpp | |
| parent | 30d16373d0d71134f90fb39a57287b66c0be29a8 (diff) | |
add refreshrate or resolution preference
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 920eecc8..89858bc1 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -460,8 +460,10 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string if (curitem.find("pref") == 0) { newrule.resolution = Vector2D(); - } else if(curitem.find("high") == 0) { + } else if(curitem.find("highrr") == 0) { newrule.resolution = Vector2D(-1,-1); + } else if(curitem.find("highres") == 0) { + newrule.resolution = Vector2D(-1,-2); } else { newrule.resolution.x = stoi(curitem.substr(0, curitem.find_first_of('x'))); newrule.resolution.y = stoi(curitem.substr(curitem.find_first_of('x') + 1, curitem.find_first_of('@'))); |
