Changed the example to use the forms spec file.
Made a couple of variable name changes.
This commit is contained in:
parent
860d93251e
commit
d0f75ce585
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user