summaryrefslogtreecommitdiff
path: root/gui/common.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 14:07:45 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 14:19:21 -0300
commitbd9943d473ab96c5d37b0944ed33a1f6766d62e5 (patch)
tree59f27d8fa71f981928293bc8e55e7c0415d08db2 /gui/common.h
parentc58e2ecd39de8f433c787a8feb558509e664ac88 (diff)
downloadeeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.tar.gz
eeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.tar.bz2
eeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.zip
remove global gfx state (pass context as argument)
Diffstat (limited to 'gui/common.h')
-rw-r--r--gui/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/common.h b/gui/common.h
index c823dd5..cf03953 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -18,6 +18,7 @@
#include <gtk/gtk.h>
#include "gfx/cro.h"
+#include "gfx/gfx.h"
#include "file/git-hist.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
@@ -32,8 +33,8 @@ struct gui_sheet {
const struct sheet *sch;
struct gui_ctx *ctx; /* back link */
struct gui_hist *hist; /* back link */
- struct cro_ctx *gfx_ctx;
- struct cro_ctx *gfx_ctx_extra;
+ struct gfx *gfx;
+ struct gfx *gfx_extra;
int w, h; /* in eeschema coordinates */
int xmin, ymin;
@@ -44,7 +45,7 @@ struct gui_sheet {
struct aoi *aois; /* areas of interest; in schematics coord */
/* thumbnails, for index */
- struct cro_ctx *gfx_ctx_thumb; /* NULL if not yet rendered */
+ struct gfx *gfx_thumb; /* NULL if not yet rendered */
cairo_surface_t *thumb_surf; /* for caching */
unsigned thumb_w, thumb_h; /* size for which we cached */
struct overlay *thumb_over; /* thumb overlay */