- mvaddch(all_corners[i].tl.y, all_corners[i].tl.x, '+');
- mvaddch(all_corners[i].tr.y, all_corners[i].tr.x, '+');
- mvaddch(all_corners[i].bl.y, all_corners[i].bl.x, '+');
- mvaddch(all_corners[i].br.y, all_corners[i].br.x, '+'); }
- free(all_corners); } }
-
-void draw_window(struct Win * win) {
-// Draw window content if visible.
- if (win->height > 1 && win->width > 1) ;
- win->draw(win);
- wrefresh(win->curses_win); }
-
-void resize_window (struct WinMeta * win_meta, char change) {
+ mvwaddch(win_meta->pad, all_corners[i].tl.y, all_corners[i].tl.x, '+');
+ mvwaddch(win_meta->pad, all_corners[i].tr.y, all_corners[i].tr.x, '+');
+ mvwaddch(win_meta->pad, all_corners[i].bl.y, all_corners[i].bl.x, '+');
+ mvwaddch(win_meta->pad, all_corners[i].br.y, all_corners[i].br.x, '+'); }
+ free(all_corners);
+ uint16_t y;
+ if (win_meta->pad_offset > 0)
+ draw_vertical_scroll_hint(win_meta, win_meta->pad_offset, win_meta->pad_offset + 1, '<');
+ if (win_meta->pad_offset + win_meta->width < getmaxx(win_meta->pad) - 1)
+ for (y = 0; y < win_meta->height; y++)
+ draw_vertical_scroll_hint(win_meta, win_meta->pad_offset + win_meta->width - 1,
+ getmaxx(win_meta->pad) - (win_meta->pad_offset + win_meta->width + 1), '>');
+ pnoutrefresh(win_meta->pad, 0, win_meta->pad_offset, 0, 0, win_meta->height, win_meta->width - 1); }
+ doupdate(); }
+
+void resize_active_window (struct WinMeta * win_meta, uint16_t height, uint16_t width) {