- for (y = win->curses_win->_begy; y <= win->curses_win->_begy + win->height; y++) {
- mvwaddch(win->curses_win->_parent, y, win->curses_win->_begx - 1, '|');
- mvwaddch(win->curses_win->_parent, y, win->curses_win->_begx + win->width, '|'); }
- for (x = win->curses_win->_begx; x <= win->curses_win->_begx + win->width; x++) {
- mvwaddch(win->curses_win->_parent, win->curses_win->_begy - 1, x, '-');
- mvwaddch(win->curses_win->_parent, win->curses_win->_begy + win->height, x, '-'); }
+ for (y = getbegy(win->curses_win); y <= getbegy(win->curses_win) + win->height; y++) {
+ mvwaddch(wgetparent(win->curses_win), y, getbegx(win->curses_win) - 1, '|');
+ mvwaddch(wgetparent(win->curses_win), y, getbegx(win->curses_win) + win->width, '|'); }
+ for (x = getbegx(win->curses_win); x <= getbegx(win->curses_win) + win->width; x++) {
+ mvwaddch(wgetparent(win->curses_win), getbegy(win->curses_win) - 1, x, '-');
+ mvwaddch(wgetparent(win->curses_win), getbegy(win->curses_win) + win->height, x, '-'); }