summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-09-08 14:29:36 +0100
committerPhil Jones <philj56@gmail.com>2022-09-08 14:29:36 +0100
commite548412b8eb5c02024645e790745a41ac1ba1192 (patch)
tree85e63142423d1c547fff5f98ae4b97dd3b1a7818 /src
parent38fb64271e41c2f578da509e334932bd012a702c (diff)
Make --scale default to true.
This also stops font sizes from scaling when --scale=false is set.
Diffstat (limited to 'src')
-rw-r--r--src/config.c9
-rw-r--r--src/main.c1
2 files changed, 2 insertions, 8 deletions
diff --git a/src/config.c b/src/config.c
index e1a30b8..7e5fb6b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -369,17 +369,10 @@ void config_fixup_values(struct tofi *tofi)
{
uint32_t scale = tofi->window.scale;
- /*
- * Scale fonts to the correct size.
- *
- * TODO: In the next release (0.6.0), this should be moved within
- * the use_scale conditional.
- */
- tofi->window.entry.font_size *= scale;
-
if (tofi->use_scale) {
struct entry *entry = &tofi->window.entry;
+ tofi->window.entry.font_size *= scale;
entry->prompt_padding *= scale;
entry->corner_radius *= scale;
entry->selection_background_padding *= scale;
diff --git a/src/main.c b/src/main.c
index dae7e12..673bb9f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1024,6 +1024,7 @@ int main(int argc, char *argv[])
| ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT,
.use_history = true,
.require_match = true,
+ .use_scale = true,
};
wl_list_init(&tofi.output_list);