giftcurs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[giFTcurs-commits] giFTcurs/src ui_main.c


From: Christian Häggström
Subject: [giFTcurs-commits] giFTcurs/src ui_main.c
Date: Sat, 22 Nov 2003 05:16:38 -0500

CVSROOT:        /cvsroot/giftcurs
Module name:    giFTcurs
Branch:         
Changes by:     Christian Häggström <address@hidden>    03/11/22 05:16:38

Modified files:
        src            : ui_main.c 

Log message:
        Also rerender the infobox if screen width changes

Patches:
Index: giFTcurs/src/ui_main.c
diff -u giFTcurs/src/ui_main.c:1.350 giFTcurs/src/ui_main.c:1.351
--- giFTcurs/src/ui_main.c:1.350        Sun Nov 16 11:15:37 2003
+++ giFTcurs/src/ui_main.c      Sat Nov 22 05:16:37 2003
@@ -18,7 +18,7 @@
  * along with giFTcurs; if not, write to the Free Software Foundation,
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,  USA.
  *
- * $Id: ui_main.c,v 1.350 2003/11/16 16:15:37 weinholt Exp $
+ * $Id: ui_main.c,v 1.351 2003/11/22 10:16:37 saturn Exp $
  */
 #include "giftcurs.h"
 
@@ -764,6 +764,12 @@
        request_stats(my_screen_nr | 0100);
 }
 
+static void hit_touch(hit *h)
+{
+       /* terminal have been resized, must render the metadata again */
+       h->meta_dirty = TRUE;
+}
+
 static void main_screen_update_results(void)
 {
        char tmp[15];
@@ -776,6 +782,7 @@
        /* invalidate all pretty-strings if screen width has changed. */
        if (q->pretty_width != max_x) {
                tree_touch_all(q);
+               list_foreach(tree_children(q), hit_touch);
                q->pretty_width = max_x;
        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]