aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-12-27 21:57:29 +0000
committerThomas White <taw@bitwiz.org.uk>2014-12-27 21:57:29 +0000
commita68d64edca4f67df49b9499272319cad93d38bbe (patch)
treee1f5084d006257713090bb7a2dc1f91976b91e7c /src/narrative_window.c
parentfb69111748d9d4eba92024799421ee2573418d15 (diff)
Draw from callbacks
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 50fc3e9..7a66f14 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -199,11 +199,14 @@ static cairo_surface_t *render_thumbnail(SCInterpreter *scin, SCBlock *bl,
{
struct presentation *p = vp;
cairo_surface_t *surf;
-
- printf("thumbnail callback\n");
- show_sc_block(sc_interp_get_macro_real_block(scin), "");
+ cairo_t *cr;
surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 256, 256);
+ cr = cairo_create(surf);
+ cairo_set_source_rgb(cr, 0.0, 0.5, 0.0);
+ cairo_paint(cr);
+ cairo_destroy(cr);
+
return surf;
}