Allow menu boxes to be forced down the screen if the message text is long.

This commit is contained in:
dsl 2004-02-29 23:13:23 +00:00
parent b5e62ef069
commit 273835431b

View File

@ -1,4 +1,4 @@
/* $NetBSD: menu_sys.def,v 1.52 2003/12/21 21:42:48 dsl Exp $ */ /* $NetBSD: menu_sys.def,v 1.53 2004/02/29 23:13:23 dsl Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -168,8 +168,13 @@ init_menu(menudesc *m)
exithadd = ((m->mopt & MC_NOEXITOPT) ? 0 : 1); exithadd = ((m->mopt & MC_NOEXITOPT) ? 0 : 1);
#ifdef MSG_DEFS_H #ifdef MSG_DEFS_H
if (y == -1) if (y < 0) {
y = msg_row(); /* put menu box below message text */
y = -y;
i = msg_row();
if (i > y)
y = i;
}
#endif #endif
/* Calculate h? h == number of visible options. */ /* Calculate h? h == number of visible options. */