diff options
author | Craig Scott <craig.scott@csiro.au> | 2011-01-03 17:15:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-01-03 17:15:41 (GMT) |
commit | 7d691cab9b479b154653f49057724a7707015828 (patch) | |
tree | 8de61719516046fac2bcfd695582d554af271b24 /Source/CursesDialog/form/frm_post.c | |
parent | a67fd7265978a3d8e0565671da651ddfdc6b6e98 (diff) | |
download | CMake-7d691cab9b479b154653f49057724a7707015828.zip CMake-7d691cab9b479b154653f49057724a7707015828.tar.gz CMake-7d691cab9b479b154653f49057724a7707015828.tar.bz2 |
ccmake: Port for LSB 4.0 (#11648)
Use getmaxyx instead of getmax[xy]. Avoid using getattrs.
Diffstat (limited to 'Source/CursesDialog/form/frm_post.c')
-rw-r--r-- | Source/CursesDialog/form/frm_post.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CursesDialog/form/frm_post.c b/Source/CursesDialog/form/frm_post.c index 5ead942..924fe6a 100644 --- a/Source/CursesDialog/form/frm_post.c +++ b/Source/CursesDialog/form/frm_post.c @@ -51,6 +51,7 @@ int post_form(FORM * form) WINDOW *formwin; int err; int page; + int height, width; if (!form) RETURN(E_BAD_ARGUMENT); @@ -62,7 +63,8 @@ int post_form(FORM * form) RETURN(E_NOT_CONNECTED); formwin = Get_Form_Window(form); - if ((form->cols > getmaxx(formwin)) || (form->rows > getmaxy(formwin))) + getmaxyx(formwin, height, width); + if ((form->cols > width) || (form->rows > height)) RETURN(E_NO_ROOM); /* reset form->curpage to an invald value. This forces Set_Form_Page |