summaryrefslogtreecommitdiff
path: root/gui/render.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 04:05:41 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 04:06:59 -0300
commit1776e011bad42b24905d5515f975bbd78641bff2 (patch)
tree57a9cd487d14d7cd2ac181d9c5b62ccdce966ab9 /gui/render.c
parentaa7e2782b14e596e6ccb373e55bdd18eff3cf4c4 (diff)
downloadeeshow-1776e011bad42b24905d5515f975bbd78641bff2.tar.gz
eeshow-1776e011bad42b24905d5515f975bbd78641bff2.tar.bz2
eeshow-1776e011bad42b24905d5515f975bbd78641bff2.zip
eeshow/gui/: experimental support for page layout; option -P pl-file.kicad_wks
Unlike libraries and schematics, page layouts are not (yet) tracked through revision history.
Diffstat (limited to 'gui/render.c')
-rw-r--r--gui/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/render.c b/gui/render.c
index 32a3f1d..51dbd8e 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -21,6 +21,7 @@
#include "gfx/style.h"
#include "gfx/cro.h"
#include "gfx/gfx.h"
+#include "kicad/pl.h"
#include "kicad/sch.h"
#include "kicad/delta.h"
#include "gfx/diff.h"
@@ -230,6 +231,8 @@ void render_sheet(struct gui_sheet *sheet)
char *argv[] = { "gui", NULL };
gfx_init(&cro_canvas_ops, 1, argv);
+ if (sheet->ctx->pl)
+ pl_render(sheet->ctx->pl, sheet->sch->w, sheet->sch->h);
sch_render(sheet->sch);
cro_canvas_end(gfx_ctx,
&sheet->w, &sheet->h, &sheet->xmin, &sheet->ymin);