summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2022-09-23 16:50:24 +0100
committerGitHub <noreply@github.com>2022-09-23 16:50:24 +0100
commitabee2da5bd38f5afdcce8aed591f3063d839df11 (patch)
treef2e435aa17348849edd4a381dfca16968b874111 /src/config/ConfigManager.cpp
parent695411f1bdad4535156602ba9b389b02713bc1b6 (diff)
parentc4e782ca5d8f1128c7b5d397c62452c1e4897c39 (diff)
Merge pull request #706 from DashieTM/main
Add "highest" mode to Monitor for autoconfiguration.
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 542ce09a..6f90c691 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -460,6 +460,10 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
if (curitem.find("pref") == 0) {
newrule.resolution = Vector2D();
+ } 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('@')));