diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-11-27 22:15:30 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-11-27 22:15:30 +0100 |
commit | 25fd04356ab94d4f614bce58d1c291e4c4f1f168 (patch) | |
tree | 6873e0bfa59a9ccb0929ad380211d0c863021fb5 /src/sc_editor.c | |
parent | ce4063914caf0d28b807ecefa0a6be137b178d49 (diff) |
Restore "b splits"
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index c7ebb26..67d252d 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -58,6 +58,14 @@ static void sc_editor_init(SCEditor *self) } +void sc_editor_set_background(SCEditor *e, double r, double g, double b) +{ + e->bgcol[0] = r; + e->bgcol[1] = g; + e->bgcol[2] = b; +} + + /* Update the view, once it's been edited in some way. */ static void rerender(SCEditor *e) { @@ -396,11 +404,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, /* Overall background */ cairo_rectangle(cr, 0.0, 0.0, width, height); -// if ( slideshow_linked(e->p->slideshow) ) { -// cairo_set_source_rgb(cr, 1.0, 0.3, 0.2); -// } else { - cairo_set_source_rgb(cr, 0.9, 0.9, 0.9); -// } FIXME + cairo_set_source_rgb(cr, e->bgcol[0], e->bgcol[1], e->bgcol[2]); cairo_fill(cr); /* Get the overall size */ |