added high to monitor resolution

This commit is contained in:
Fabio Lenherr
2022-09-21 22:29:52 +02:00
parent d51c7ca135
commit c1feb683ce
2 changed files with 56 additions and 13 deletions

View File

@@ -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('@')));