diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-05-20 02:12:45 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-05-21 22:56:29 +0200 |
commit | ac72a72afcbfed0ddb51172151148bbc42c415f9 (patch) | |
tree | 34d5b9f4b8f75558b19c82dc8f6e93ca4d468579 | |
parent | a6560509d99d75728c0c857de4859ca9d81f1a0d (diff) | |
download | fiv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |