Add DPI feature

This commit is contained in:
pixl
2020-07-02 03:34:14 -04:00
parent f6b93b94af
commit 07b8fc1af4
7 changed files with 199 additions and 14 deletions
+2 -4
View File
@@ -44,14 +44,12 @@ Configuration::Configuration(const std::string& config_file)
Setting* devices;
try { devices = &root["devices"]; }
catch(const SettingNotFoundException &e)
{
catch(const SettingNotFoundException &e) {
logPrintf(WARN, "No devices listed in config file.");
return;
}
for(int i = 0; i < devices->getLength(); i++)
{
for(int i = 0; i < devices->getLength(); i++) {
const Setting &device = (*devices)[i];
std::string name;
try {