Browse Source

deleting a subwin in waterfall

master
tth 3 years ago
parent
commit
bc7e6379e6
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      viz/curses/waterfall.c

+ 6
- 0
viz/curses/waterfall.c View File

@ -100,12 +100,18 @@ return -1;
/* ---------------------------------------------------------------- */
int close_waterfall(WINDOW *wf, int notused)
{
int foo;
if (NULL == wf) {
fprintf(stderr, "%s wf is null\n", __func__);
return -1;
}
foo = delwin(wf);
if (ERR==foo) {
fprintf(stderr, "%s : err on delwin\n", __func__);
return -1;
}
return 0;
}
/* ---------------------------------------------------------------- */

Loading…
Cancel
Save