summaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index c7e4ddb..cee9e91 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -29,6 +29,11 @@ config::config() : cfg() {
else {
this->cfg["layers.json"] = std::string(path_layers_json) + std::string("/etc/layers.json");
}
+
+ const char *ignore_aspect = getenv("HMI_SCALING_IGNORE_ASPECT");
+ if (ignore_aspect) {
+ this->cfg["scaling_ignore_aspect"] = std::string(ignore_aspect);
+ }
}
} // namespace wm