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
This commit is contained in:
parent
41e4e80e4b
commit
4d9bd3945d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue