| 221 | } |
| 222 | |
| 223 | int wrefresh(WINDOW *win) |
| 224 | { |
| 225 | bool save_clear; |
| 226 | |
| 227 | PDC_LOG(("wrefresh() - called\n")); |
| 228 | |
| 229 | if ( !win || (win->_flags & (_PAD|_SUBPAD)) ) |
| 230 | return ERR; |
| 231 | |
| 232 | save_clear = win->_clear; |
| 233 | |
| 234 | if (win == curscr) |
| 235 | curscr->_clear = TRUE; |
| 236 | else |
| 237 | wnoutrefresh(win); |
| 238 | |
| 239 | if (save_clear && win->_maxy == SP->lines && win->_maxx == SP->cols) |
| 240 | curscr->_clear = TRUE; |
| 241 | |
| 242 | return doupdate(); |
| 243 | } |
| 244 | |
| 245 | int refresh(void) |
| 246 | { |
no test coverage detected
searching dependent graphs…