From 4d9bd3945df72fe2ebbf621af84f9383ea5ed171 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Tue, 26 Jan 2021 22:47:36 -0800 Subject: [PATCH] Ensure buttonsize + window size sufficiently tall Need space for 5 buttons' worth of height, for situations such as * Stamps 1. up/down scroll arrows (1 button height, total) 2. actually show some stamps 3. left/right paging buttons 4. flip/mirror toggles 5. scale 'slider' * Label 1. up/down scroll arrows (1 button height, total) 2. actually show some fonts 3. label picker button 4. bold/italic toggles 5. shrink/grow font size buttons --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 6cc24a1fd..b1a25dea3 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -801,7 +801,7 @@ static void setup_normal_screen_layout(void) /* need 56 minimum for the Tux area */ buttons_tall = (WINDOW_HEIGHT - r_ttoolopt.h - 56 * button_scale - r_colors.h) / button_h; - if (buttons_tall < 2) { + if (buttons_tall < 5) { fprintf(stderr, "Button size '%d' with window size '%dx%d' is not reasonable.\n", button_w, WINDOW_WIDTH, WINDOW_HEIGHT); exit(93); }