summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 16:45:07 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 16:46:15 -0300
commit25061ecb551c4d789bd3c7efda8143f740d56365 (patch)
tree9cb4cdf16b4dc32b4211c77803ddd01fd75aaf07 /gui/gui.c
parent0c6dc20dc5adcc1c93921b6fc9fb2405b651d07b (diff)
downloadeeshow-25061ecb551c4d789bd3c7efda8143f740d56365.tar.gz
eeshow-25061ecb551c4d789bd3c7efda8143f740d56365.tar.bz2
eeshow-25061ecb551c4d789bd3c7efda8143f740d56365.zip
in GUI mode, E toggles extra information (pin types)
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gui/gui.c b/gui/gui.c
index 5fe3cc9..dd00832 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -43,6 +43,24 @@
#include "gui/gui.h"
+/* ----- @@@ Hack: discard all rendering on major mode change -------------- */
+
+void unrender_all(struct gui_ctx *ctx)
+{
+ const struct gui_hist *h;
+ struct gui_sheet *sheet;
+
+ for (h = ctx->hist; h; h = h->next)
+ for (sheet = h->sheets; sheet; sheet = sheet->next) {
+ /*
+ * @@@ if there was a gfx_free, we wouldn't create a
+ * massive memory leak here.
+ */
+ sheet->rendered = 0;
+ }
+}
+
+
/* ----- Helper functions -------------------------------------------------- */