src/liflines/dynmenu.c
/*==================================================================
 * dynmenu_adjust_height - Increase or decrease screen size of menu
 * Created: 2002/10/28, Perry Rapp
 *================================================================*/
Increase or decrease screen size of menu
Created: 2002/10/28, Perry Rapp
Increase or decrease screen size of menu Created : 2002 / 10 / 28 Perry Rapp
void
dynmenu_adjust_height (DYNMENU dynmenu, INT delta)
{
	INT oldrows = dynmenu->rows;
	dynmenu->rows += delta;
	if (dynmenu->rows < dynmenu->minrows)
		dynmenu->rows = dynmenu->minrows;
	if (dynmenu->rows > dynmenu->maxrows)
		dynmenu->rows = dynmenu->maxrows;
	if (dynmenu->rows != oldrows)
		dynmenu->dirty = 1;
	dynmenu->top = dynmenu->bottom - (dynmenu->rows-1);
}
void dynmenu_adjust_height ( DYNMENU dynmenu , INT delta ) { INT oldrows = dynmenu -> rows ; dynmenu -> rows += delta ; if ( dynmenu -> rows < dynmenu -> minrows ) dynmenu -> rows = dynmenu -> minrows ; if ( dynmenu -> rows > dynmenu -> maxrows ) dynmenu -> rows = dynmenu -> maxrows ; if ( dynmenu -> rows != oldrows ) dynmenu -> dirty = 1 ; dynmenu -> top = dynmenu -> bottom - ( dynmenu -> rows - 1 ) ; }
dynmenu_adjust_height - Increase or decrease screen size of menu
 Created: 2002/10/28, Perry Rapp
dynmenu_adjust_height - Increase or decrease screen size of menu Created : 2002 / 10 / 28 Perry Rapp