aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-08 09:27:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-12 16:31:55 +0000
commitcbe896f694471a5c7e79d76837e05f7a8d319184 (patch)
tree98687214f550113faf4e8a171b9493ca68343ee3
parentbox-drawing: LIGHT ARC: ensure row+col are within range (diff)
config: add temporary(?) tweak option for box drawing line thickness
-rw-r--r--config.c15
-rw-r--r--config.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/config.c b/config.c
index 9306a6e7..07101122 100644
--- a/config.c
+++ b/config.c
@@ -1708,6 +1708,20 @@ parse_section_tweak(
(long long)conf->tweak.max_shm_pool_size);
}
+ else if (strcmp(key, "box-drawing-base-thickness") == 0) {
+ double base_thickness;
+ if (!str_to_double(value, &base_thickness)) {
+ LOG_AND_NOTIFY_ERR(
+ "%s:%d: [tweak]: box-drawing-base-thickness: "
+ "expected a decimal value, got '%s'", path, lineno, value);
+ return false;
+ }
+
+ conf->tweak.box_drawing_base_thickness = base_thickness;
+ LOG_WARN("tweak: box-drawing-base-thickness=%f",
+ conf->tweak.box_drawing_base_thickness);
+ }
+
else {
LOG_AND_NOTIFY_ERR("%s:%u: [tweak]: %s: invalid key", path, lineno, key);
return false;
@@ -2122,6 +2136,7 @@ config_load(struct config *conf, const char *conf_path,
.render_timer_osd = false,
.render_timer_log = false,
.damage_whole_window = false,
+ .box_drawing_base_thickness = 0.02,
},
.notifications = tll_init(),
diff --git a/config.h b/config.h
index fffc44aa..2bae8d31 100644
--- a/config.h
+++ b/config.h
@@ -196,6 +196,7 @@ struct config {
uint64_t delayed_render_lower_ns;
uint64_t delayed_render_upper_ns;
off_t max_shm_pool_size;
+ float box_drawing_base_thickness;
} tweak;
user_notifications_t notifications;