summaryrefslogtreecommitdiff
path: root/kicad/lib.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 /kicad/lib.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 'kicad/lib.h')
-rw-r--r--kicad/lib.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/kicad/lib.h b/kicad/lib.h
index 9056748..f146091 100644
--- a/kicad/lib.h
+++ b/kicad/lib.h
@@ -18,6 +18,7 @@
#include "file/file.h"
#include "gfx/text.h"
+#include "gfx/gfx.h"
enum pin_shape {
@@ -134,10 +135,10 @@ extern struct comp *comps;
const struct comp *lib_find(const struct lib *lib, const char *name);
bool lib_field_visible(const struct comp *comp, int n);
-void lib_render(const struct comp *comp, unsigned unit, unsigned convert,
- const int m[6]);
-void lib_render_extra(const struct comp *comp, unsigned unit, unsigned convert,
- const int m[4]);
+void lib_render(const struct comp *comp, struct gfx *gfx,
+ unsigned unit, unsigned convert, const int m[6]);
+void lib_render_extra(const struct comp *comp, struct gfx *gfx,
+ unsigned unit, unsigned convert, const int m[4]);
bool lib_parse_file(struct lib *lib, struct file *file);
bool lib_parse(struct lib *lib, const char *name, const struct file *related);