- if (y < height_av) { // Depending on what is bigger, determine start point in window or in text.
- start_y = height_av - y;
- for (y = 0; y < start_y; y++)
- for (x = 0; x < width_av; x++)
- mvwaddch(win->curses_win, y+1, x+win->border_left, ' '); }
- else if (y > height_av) {
- offset = y - height_av;
+ if (y < win->height) // Depending on what is bigger, determine start point in window or in text.
+ start_y = win->height - y;
+ else if (y > win->height) {
+ offset = y - win->height;