From c1feb683ced87fa1622b797c92512697ddad38de Mon Sep 17 00:00:00 2001 From: Fabio Lenherr Date: Wed, 21 Sep 2022 22:29:52 +0200 Subject: added high to monitor resolution --- src/config/ConfigManager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 94a81458..920eecc8 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -460,6 +460,8 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string if (curitem.find("pref") == 0) { newrule.resolution = Vector2D(); + } else if(curitem.find("high") == 0) { + newrule.resolution = Vector2D(-1,-1); } 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('@'))); -- cgit v1.2.3 From 215125bd6657cfe742b33749943c01e31f079ebc Mon Sep 17 00:00:00 2001 From: Fabio Lenherr Date: Thu, 22 Sep 2022 00:22:39 +0200 Subject: add refreshrate or resolution preference --- src/config/ConfigManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.cpp') 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('@'))); -- cgit v1.2.3