aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-23 14:37:12 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-24 13:56:36 +0200
commitadd96b37a65fa40e87fd1f3eb9bead896fc2ae8f (patch)
tree78a7bfde8dbd776c1cb6002f33ddbd0ab1313648 /fiv-view.c
parentc2e8b65d0f77e7b93c4676df74bb0cf706e5665b (diff)
downloadfiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.tar.gz
fiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.tar.xz
fiv-add96b37a65fa40e87fd1f3eb9bead896fc2ae8f.zip
Stop abusing Cairo user data, part 1
This commit temporarily breaks multi-page images and animations.
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 22894ee..43b4055 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -1374,7 +1374,8 @@ open_without_swapping_in(FivView *self, const char *uri)
};
GError *error = NULL;
- cairo_surface_t *surface = fiv_io_open(&ctx, &error);
+ cairo_surface_t *surface =
+ fiv_io_image_to_surface(fiv_io_open(&ctx, &error));
if (error) {
g_ptr_array_add(ctx.warnings, g_strdup(error->message));
g_error_free(error);