- switch (opt) {
- case 0:
- dialog = derwin(stdscr, LINES-4, COLS-2, 2, 1);
- ver_registros(dialog, COLS-2, LINES-4, 0);
- werase(dialog);
- wrefresh(dialog);
- delwin(dialog);
- refresh();
- break;
- case 1:
- dialog = derwin(stdscr, LINES-4, COLS-2, 2, 1);
- ver_registros(dialog, COLS-2, LINES-4, 1);
- werase(dialog);
- wrefresh(dialog);
- delwin(dialog);
- refresh();
- /* break; */
- /* case 2: */
- }
+ dialog = derwin(stdscr, LINES-4, COLS-2, 2, 1);
+ ver_registros(dialog, COLS-2, LINES-4, opt);
+ werase(dialog);
+ wrefresh(dialog);
+ delwin(dialog);
+ refresh();