From: Florian Forster Date: Sat, 12 Jun 2010 14:04:02 +0000 (+0200) Subject: src/oping.c: Resizing the scrolling region seems to work with this parameters. X-Git-Tag: liboping-1.4.0~6 X-Git-Url: https://git.tokkee.org/?p=liboping.git;a=commitdiff_plain;h=4bf64339cf6f438f2e56539103e77bb1fee71279 src/oping.c: Resizing the scrolling region seems to work with this parameters. I don't understand what I'm doing different to previously, but whatever it is it seems to do the trick. --- diff --git a/src/oping.c b/src/oping.c index 4f9c5f3..f8f7dd6 100644 --- a/src/oping.c +++ b/src/oping.c @@ -440,14 +440,7 @@ static int on_resize (pingobj_t *ping) /* {{{ */ return (EINVAL); main_win_height = height - (4 * host_num); -#if 1 - wresize (main_win, main_win_height, /* width = */ 0); -#else - delwin (main_win); - main_win = newwin (/* height = */ main_win_height, - /* width = */ 0, - /* y = */ 0, /* x = */ 0); -#endif + wresize (main_win, main_win_height, /* width = */ width); /* Allow scrolling */ scrollok (main_win, TRUE); /* wsetscrreg (main_win, 0, main_win_height - 1); */