summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-22 12:47:41 +0000
committerPhil Jones <philj56@gmail.com>2022-11-22 12:49:24 +0000
commitaea29d767a1fa071d543c568968d715d83f9014a (patch)
treec68c14b6495c08e0a82ecc25069063cb16da44bb /src/entry.c
parentbf144ceca6285af5ce9f64f1176cb104f78b9637 (diff)
Fix new theme options not following scale factor.
Diffstat (limited to 'src/entry.c')
-rw-r--r--src/entry.c8
1 files changed, 4 insertions, 4 deletions
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;
}
}