aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-05-20 02:12:45 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-05-21 22:56:29 +0200
commitac72a72afcbfed0ddb51172151148bbc42c415f9 (patch)
tree34d5b9f4b8f75558b19c82dc8f6e93ca4d468579
parenta6560509d99d75728c0c857de4859ca9d81f1a0d (diff)
downloadfiv-ac72a72afcbfed0ddb51172151148bbc42c415f9.tar.gz
fiv-ac72a72afcbfed0ddb51172151148bbc42c415f9.tar.xz
fiv-ac72a72afcbfed0ddb51172151148bbc42c415f9.zip
Mildly optimize raw image handling
Don't claim an alpha channel when we don't use it.
-rw-r--r--fiv-io.c2
1 files changed, 1 insertions, 1 deletions
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));