From aea29d767a1fa071d543c568968d715d83f9014a Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 22 Nov 2022 12:47:41 +0000 Subject: Fix new theme options not following scale factor. --- src/entry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/entry.c') diff --git a/src/entry.c b/src/entry.c index 6af9969..2ea14ac 100644 --- a/src/entry.c +++ b/src/entry.c @@ -45,16 +45,16 @@ static void apply_text_theme_fallback(struct text_theme *theme, const struct tex static void fixup_padding_sizes(struct directional *padding, uint32_t clip_width, uint32_t clip_height) { - if (padding->top == -1) { + if (padding->top < 0) { padding->top = clip_height; } - if (padding->bottom == -1) { + if (padding->bottom < 0) { padding->bottom = clip_height; } - if (padding->left == -1) { + if (padding->left < 0) { padding->left = clip_width; } - if (padding->right == -1) { + if (padding->right < 0) { padding->right = clip_width; } } -- cgit v1.2.3