diff options
Diffstat (limited to 'Source/CursesDialog/form/frm_post.c')
-rw-r--r-- | Source/CursesDialog/form/frm_post.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CursesDialog/form/frm_post.c b/Source/CursesDialog/form/frm_post.c index 924fe6a..3c63de7 100644 --- a/Source/CursesDialog/form/frm_post.c +++ b/Source/CursesDialog/form/frm_post.c @@ -63,7 +63,12 @@ int post_form(FORM * form) RETURN(E_NOT_CONNECTED); formwin = Get_Form_Window(form); +#if defined(__LSB_VERSION__) getmaxyx(formwin, height, width); +#else + width = getmaxx(formwin); + height = getmaxy(formwin); +#endif if ((form->cols > width) || (form->rows > height)) RETURN(E_NO_ROOM); |