summaryrefslogtreecommitdiff
path: root/gui/common.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 17:00:55 -0300
commitc9b85bd14a54881898d08261f7b9d98288a217b3 (patch)
tree423b685c283e2157c7b1c07d48f39056987c1282 /gui/common.h
parentee5aca2e6cc5a60ea8356e56ca315609c7ea7bc3 (diff)
downloadeeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.gz
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.tar.bz2
eeshow-c9b85bd14a54881898d08261f7b9d98288a217b3.zip
gui/: do without the "unrender_all" atrocity
Benefits: - no horrible memory leak - we don't need to jump to the current page (causing zoom_to_extents) Drawbacks: - only supported in non-diff modes
Diffstat (limited to 'gui/common.h')
-rw-r--r--gui/common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/common.h b/gui/common.h
index 2ad96a8..1398931 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -33,6 +33,7 @@ struct gui_sheet {
struct gui_ctx *ctx; /* back link */
struct gui_hist *hist; /* back link */
struct cro_ctx *gfx_ctx;
+ struct cro_ctx *gfx_ctx_extra;
int w, h; /* in eeschema coordinates */
int xmin, ymin;
@@ -153,8 +154,6 @@ void show_history(struct gui_ctx *ctx, enum selecting sel);
/* gui.c */
-void unrender_all(struct gui_ctx *ctx);
-
struct gui_sheet *find_corresponding_sheet(struct gui_sheet *pick_from,
struct gui_sheet *ref_in, const struct gui_sheet *ref);
void mark_aois(struct gui_ctx *ctx, struct gui_sheet *sheet);