Changed the example to use the forms spec file.

Made a couple of variable name changes.
This commit is contained in:
paul 1995-01-24 13:27:46 +00:00
parent 860d93251e
commit d0f75ce585
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ initfrm(struct form *form)
cbreak();
noecho();
form->window = newwin(form->nlines, form->ncols, form->y, form->x);
form->window = newwin(form->height, form->width, form->y, form->x);
if (!form->window) {
print_status("Couldn't open window, closing form");
return (ERR);

View File

@ -30,8 +30,8 @@ struct form {
int no_fields;
int current_field;
struct field *field;
int nlines;
int ncols;
int height;
int width;
int y;
int x;
WINDOW *window;