Stop abusing Cairo user data, part 1

This commit temporarily breaks multi-page images and animations.
This commit is contained in:
2023-06-23 14:37:12 +02:00
parent c2e8b65d0f
commit add96b37a6
5 changed files with 607 additions and 577 deletions

View File

@@ -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);