From fec37db06bbbdff79bc9816046a76e0b29e173b4 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 28 Jun 2011 11:05:05 +0200 Subject: Avoid redundant redraws on resize Use a global flag to record whether the terminal was resized instead of redrawing everything each time a KEY_RESIZE is read. Add some additional checks to help_write_pad() as invalid actions may be passed now due to using signals instead of virtual key presses. Signed-off-by: Lukas Fleischer --- src/vars.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vars.c') diff --git a/src/vars.c b/src/vars.c index 3a790f1..4b1d7cd 100644 --- a/src/vars.c +++ b/src/vars.c @@ -43,6 +43,7 @@ * variables to store window size */ int col = 0, row = 0; +int resize = 0; /* variable to tell if the terminal supports color */ unsigned colorize = 0; -- cgit v1.2.3-54-g00ecf