diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-12-10 23:42:16 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-12-10 23:42:16 +0100 |
commit | fb3e555e5f3f42db4719d70bbb41697f05d1903a (patch) | |
tree | 109394b61d231c4f36cd30bad0808c66fa6920e3 /src/sc_editor.c | |
parent | b9c2d02c6bbf19287a2d68d3ec9887b4bb49fb80 (diff) |
Multiple stylesheets in rendering pipeline
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index d0b7b97..726b373 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -69,12 +69,17 @@ void sc_editor_set_background(SCEditor *e, double r, double g, double b) /* Update the view, once it's been edited in some way. */ static void rerender(SCEditor *e) { + SCBlock *stylesheets[2]; + if ( e->surface != NULL ) { cairo_surface_destroy(e->surface); } + stylesheets[0] = e->stylesheet; + stylesheets[1] = NULL; + e->surface = render_sc(e->scblocks, e->w, e->h, e->log_w, e->log_h, - e->stylesheet, e->is, ISZ_EDITOR, e->slidenum); + stylesheets, e->is, ISZ_EDITOR, e->slidenum); } |