* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include "config.h"
-
-#define _GNU_SOURCE
+#endif
#include <assert.h>
#include <stdarg.h>
scr->frame.status);
}
+int nc_scr_post(struct nc_scr *scr)
+{
+ if (scr->post)
+ return scr->post(scr);
+ return 0;
+}
+
+int nc_scr_unpost(struct nc_scr *scr)
+{
+ if (scr->unpost)
+ return scr->unpost(scr);
+ return 0;
+}
+
void nc_scr_frame_draw(struct nc_scr *scr)
{
int ltitle_len, rtitle_len;
scr->sub_ncw = derwin(scr->main_ncw,
LINES - nc_scr_frame_lines,
- COLS - 1 - begin_x,
+ COLS - nc_scr_frame_cols - begin_x,
nc_scr_pos_sub,
begin_x);