- for (y = win->starty; y <= win->starty + win->height; y++) {
- mvwaddch(wgetparent(win->curses), y, win->startx - 1, '|');
- mvwaddch(wgetparent(win->curses), y, win->startx + win->width, '|'); }
- for (x = win->startx; x <= win->startx + win->width; x++) {
- mvwaddch(wgetparent(win->curses), win->starty - 1, x, '-');
- mvwaddch(wgetparent(win->curses), win->starty + win->height, x, '-'); }
+ for (y = win->start.y; y <= win->start.y + win->height; y++) {
+ mvwaddch(wgetparent(win->curses), y, win->start.x - 1, '|');
+ mvwaddch(wgetparent(win->curses), y, win->start.x + win->width, '|'); }
+ for (x = win->start.x; x <= win->start.x + win->width; x++) {
+ mvwaddch(wgetparent(win->curses), win->start.y - 1, x, '-');
+ mvwaddch(wgetparent(win->curses), win->start.y + win->height, x, '-'); }