only show license on terminal with width above 40

It's almost unreadable on anything less
also we need to find space in the specified witdh, to make line breaks,
longest piece of text uninterrupted by space is 29 characters (link to
GPL license)

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2017-07-25 18:11:22 +02:00
parent 15b102c15c
commit 6dafd8b777

View File

@@ -210,7 +210,7 @@ static const GenericList gl_License = {
void display_license()
{
ListData *ldata;
if (flayer->l_width < 10 || flayer->l_height < 5) {
if (flayer->l_width < 40 || flayer->l_height < 5) {
LMsg(0, "Window size too small for license page");
return;
}