aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-12-27 20:31:32 +0000
committerThomas White <taw@bitwiz.org.uk>2014-12-27 20:31:32 +0000
commit58c55a0f038c95a7245fd58dc66b494c5b666a7e (patch)
treeba0c5ca8c3fa6960cd99e7cdc3ff3a63e3cfe0a3 /src/narrative_window.c
parente8c7ca3bbc48da3d9806b92abb3827e331594eee (diff)
Use Cairo surfaces for storing images
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 428187c..50fc3e9 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -198,9 +198,13 @@ static cairo_surface_t *render_thumbnail(SCInterpreter *scin, SCBlock *bl,
void *vp)
{
struct presentation *p = vp;
+ cairo_surface_t *surf;
+
printf("thumbnail callback\n");
show_sc_block(sc_interp_get_macro_real_block(scin), "");
- return NULL;
+
+ surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 256, 256);
+ return surf;
}