diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-16 21:31:48 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-16 21:31:48 +0100 |
| commit | c89bd80db59e9f4828a9a8ce43bdf90ce1512158 (patch) | |
| tree | 9e1f9118e7c91030dcec235d0f8911ce61cdfabf /src/button.c | |
| parent | 7d8a85532b8ee97af9568443fd97e9701943b225 (diff) | |
Precompute max button size
Diffstat (limited to 'src/button.c')
| -rw-r--r-- | src/button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/button.c b/src/button.c index 9d869dc..aac4ec0 100644 --- a/src/button.c +++ b/src/button.c @@ -80,7 +80,7 @@ void button_set_line(Button *btn, Color line_color, int line_width) void button_set_width(Button *btn, int max, int min) { - g_assert(max >= min); + g_assert(max == 0 || max >= min); g_assert(max >= 0 && min >= 0); btn->max_width = max; btn->min_width = min; |
