version 1.50, 2017/11/15 19:21:24 |
version 1.51, 2018/07/04 09:44:07 |
|
|
s->cy -= needed; |
s->cy -= needed; |
} |
} |
|
|
/* Resize line arrays. */ |
/* Resize line array. */ |
gd->linedata = xreallocarray(gd->linedata, gd->hsize + sy, |
grid_adjust_lines(gd, gd->hsize + sy); |
sizeof *gd->linedata); |
|
|
|
/* Size increasing. */ |
/* Size increasing. */ |
if (sy > oldy) { |
if (sy > oldy) { |
|
|
|
|
/* Then fill the rest in with blanks. */ |
/* Then fill the rest in with blanks. */ |
for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++) |
for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++) |
memset(&gd->linedata[i], 0, sizeof gd->linedata[i]); |
memset(grid_get_line(gd, i), 0, sizeof(struct grid_line)); |
} |
} |
|
|
/* Set the new size, and reset the scroll region. */ |
/* Set the new size, and reset the scroll region. */ |