summaryrefslogtreecommitdiff
path: root/slideshow-demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow-demo.c')
-rw-r--r--slideshow-demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow-demo.c b/slideshow-demo.c
index d4c85b2..284a1a9 100644
--- a/slideshow-demo.c
+++ b/slideshow-demo.c
@@ -35,7 +35,7 @@ static int load_sources_file(const char *filename,
if (pb == NULL)
return 0;
- image = _cairo_image_surface_create_from_pixbuf(pb);
+ image = surface_create_from_pixbuf(preload ? target : NULL, pb);
g_object_unref(pb);
width = cairo_image_surface_get_width(image);