diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-23 14:37:12 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-24 13:56:36 +0200 |
commit | add96b37a65fa40e87fd1f3eb9bead896fc2ae8f (patch) | |
tree | 78a7bfde8dbd776c1cb6002f33ddbd0ab1313648 /fiv-view.c | |
parent | c2e8b65d0f77e7b93c4676df74bb0cf706e5665b (diff) | |
download | fiv-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |