From ac72a72afcbfed0ddb51172151148bbc42c415f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Sat, 20 May 2023 02:12:45 +0200 Subject: [PATCH] Mildly optimize raw image handling Don't claim an alpha channel when we don't use it. --- fiv-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiv-io.c b/fiv-io.c index d224161..df50d33 100644 --- a/fiv-io.c +++ b/fiv-io.c @@ -1775,7 +1775,7 @@ open_libraw(const char *data, gsize len, GError **error) int width = image->width, height = image->height; cairo_surface_t *surface = - cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height); + cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height); cairo_status_t surface_status = cairo_surface_status(surface); if (surface_status != CAIRO_STATUS_SUCCESS) { set_error(error, cairo_status_to_string(surface_status));